Skip to content

Commit 976289a

Browse files
committed
Use kernel target dir for tester to improve performance
1 parent 80aeb7c commit 976289a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/subcommand/tester.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ edition = "2018"
8686
[workspace] # exclude this crate from parent workspaces
8787
8888
[[bin]]
89-
name = "{test_name}"
89+
name = "bootimage-tester-{test_name}"
9090
path = "{test_path}"
9191
9292
{dependency_table}
@@ -103,8 +103,7 @@ path = "{test_path}"
103103
let mut cmd = Command::new(&cargo);
104104
cmd.arg("xbuild");
105105
cmd.arg("--manifest-path").arg(&manifest_path);
106-
cmd.arg("--target-dir")
107-
.arg(&integration_test_dir.join("target"));
106+
cmd.arg("--target-dir").arg(&kernel_target_dir);
108107
cmd.env("SYSROOT_DIR", &integration_test_dir.join("sysroot")); // for cargo-xbuild
109108

110109
if let Some(target) = args.target.as_ref().or(config.default_target.as_ref()) {

0 commit comments

Comments
 (0)