File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ fn main() {
4
4
let out_dir = env:: var ( "OUT_DIR" ) . unwrap ( ) ;
5
5
let dest_path = Path :: new ( & out_dir) . join ( "generated_tests.rs" ) ;
6
6
let mut tests = File :: create ( & dest_path) . unwrap ( ) ;
7
- for entry in Path :: new ( "tests/ integration_tests" ) . read_dir ( ) . expect ( "failed to read tests/integration tests" ) {
7
+ for entry in Path :: new ( "tests" ) . join ( " integration_tests") . read_dir ( ) . expect ( "failed to read tests/integration tests" ) {
8
8
let entry = entry. expect ( "failed to read dir entry" ) ;
9
9
assert ! ( entry. file_type( ) . unwrap( ) . is_file( ) ) ;
10
10
let test_path = entry. path ( ) ;
Original file line number Diff line number Diff line change
1
+ use std:: path:: Path ;
2
+
1
3
include ! ( env!( "GENERATED_TESTS" ) ) ;
2
4
3
5
fn run_test ( test_path : & str ) {
4
6
let mut cmd = std:: process:: Command :: new ( "bootimage" ) ;
5
7
cmd. arg ( "tester" ) ;
6
- cmd. arg ( test_path) ;
8
+ cmd. arg ( Path :: new ( test_path) ) ;
7
9
cmd. arg ( "--target" ) ;
8
10
cmd. arg ( "../x86_64-bootimage-example-kernels.json" ) ;
9
11
let output = cmd. output ( ) . expect ( "failed to run bootimage" ) ;
You can’t perform that action at this time.
0 commit comments