diff options
| author | kennytm <kennytm@gmail.com> | 2018-07-29 03:36:18 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-07-29 15:12:47 +0800 |
| commit | a28e3d28aa03f83257122152914abbdbd9bae81c (patch) | |
| tree | ad5d6f75599300db94af0d51f1c59755721f4c60 /src/bootstrap | |
| parent | 6a2c97c38d297307dd8554853890f51144f62172 (diff) | |
| download | rust-a28e3d28aa03f83257122152914abbdbd9bae81c.tar.gz rust-a28e3d28aa03f83257122152914abbdbd9bae81c.zip | |
Copy the test_data/ RLS tests into a writable directory.
See rust-lang-nursery/rls#966 for details.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/test.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 7c69197885c..24a1dbbde66 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -290,6 +290,13 @@ impl Step for Rls { "src/tools/rls", SourceType::Submodule); + // Copy `src/tools/rls/test_data` to a writable drive. + let test_workspace_path = builder.out.join("rls-test-data"); + let test_data_path = test_workspace_path.join("test_data"); + builder.create_dir(&test_data_path); + builder.cp_r(&builder.src.join("src/tools/rls/test_data"), &test_data_path); + cargo.env("RLS_TEST_WORKSPACE_DIR", test_workspace_path); + builder.add_rustc_lib_path(compiler, &mut cargo); if try_run(builder, &mut cargo) { |
