未验证 提交 a28e3d28 编写于 作者: K kennytm

Copy the test_data/ RLS tests into a writable directory.

See rust-lang-nursery/rls#966 for details.
上级 6a2c97c3
......@@ -290,6 +290,13 @@ fn run(self, builder: &Builder) {
"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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册