Skip to content

Commit a28e3d2

Browse files
committed
Copy the test_data/ RLS tests into a writable directory.
See rust-lang/rls#966 for details.
1 parent 6a2c97c commit a28e3d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bootstrap/test.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ impl Step for Rls {
290290
"src/tools/rls",
291291
SourceType::Submodule);
292292

293+
// Copy `src/tools/rls/test_data` to a writable drive.
294+
let test_workspace_path = builder.out.join("rls-test-data");
295+
let test_data_path = test_workspace_path.join("test_data");
296+
builder.create_dir(&test_data_path);
297+
builder.cp_r(&builder.src.join("src/tools/rls/test_data"), &test_data_path);
298+
cargo.env("RLS_TEST_WORKSPACE_DIR", test_workspace_path);
299+
293300
builder.add_rustc_lib_path(compiler, &mut cargo);
294301

295302
if try_run(builder, &mut cargo) {

0 commit comments

Comments
 (0)