File tree 3 files changed +8
-4
lines changed 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,13 @@ def read_all_tests(src_files):
40
40
for name , test in read_tests (filename ):
41
41
yield name , test
42
42
43
+ def list_src_files (src_dir ):
44
+ for root , _ , files in os .walk (src_dir ):
45
+ for filename in files :
46
+ yield os .path .join (root , filename )
47
+
43
48
if __name__ == '__main__' :
44
- src_files = [ os . path . join ( SRC_DIR , f ) for f in os . listdir (SRC_DIR )]
49
+ src_files = list ( list_src_files (SRC_DIR ))
45
50
output_file = os .path .join (TEST_DIR , 'tests.rs' )
46
51
47
52
if should_build (output_file , src_files ):
Original file line number Diff line number Diff line change 1
1
use std:: process:: Command ;
2
2
3
3
fn main ( ) {
4
- Command :: new ( "python" ) . arg ( "build.py" ) . status ( ) . unwrap ( ) ;
4
+ let status = Command :: new ( "python" ) . arg ( "build.py" ) . status ( ) . unwrap ( ) ;
5
+ assert ! ( status. success( ) ) ;
5
6
}
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ extern crate objc;
3
3
4
4
pub use objc:: * ;
5
5
6
- #[ path = "../src/id.rs" ]
7
- mod id;
8
6
#[ path = "../src/test_utils.rs" ]
9
7
mod test_utils;
10
8
You can’t perform that action at this time.
0 commit comments