Skip to content

Commit 425931e

Browse files
committed
Fix test error on Windows
We need to wrap the `test_path` in a `Path` to ensure proper escaping.
1 parent 841d2ec commit 425931e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example-kernels/tester/tests/integration_tests.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
use std::path::Path;
2+
13
include!(env!("GENERATED_TESTS"));
24

35
fn run_test(test_path: &str) {
46
let mut cmd = std::process::Command::new("bootimage");
57
cmd.arg("tester");
6-
cmd.arg(test_path);
8+
cmd.arg(Path::new(test_path));
79
cmd.arg("--target");
810
cmd.arg("../x86_64-bootimage-example-kernels.json");
911
let output = cmd.output().expect("failed to run bootimage");

0 commit comments

Comments
 (0)