Changes in / [b9be079b:466149d]
- Location:
- src/tests
- Files:
-
- 58 added
- 58 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/test.py
rb9be079b r466149d 61 61 62 62 # build, skipping to next test on error 63 make_ret = sh(" make -j 8 %s 2> %s 1> /dev/null" % (test, out_file), dry_run)63 make_ret = sh("%s %s 2> %s 1> /dev/null" % (make_cmd, test, out_file), dry_run) 64 64 65 65 if make_ret == 0 : … … 84 84 85 85 def run_tests(tests, generate, dry_run) : 86 sh( 'make clean > /dev/null 2>&1', dry_run)86 sh("%s clean > /dev/null 2>&1" % make_cmd, dry_run) 87 87 sh('mkdir -p .out .expect', dry_run) 88 88 … … 102 102 print( "Done" ) 103 103 104 sh( 'make clean > /dev/null 2>&1', dry_run)104 sh("%s clean > /dev/null 2>&1" % make_cmd, dry_run) 105 105 106 106 return 1 if failed else 0 … … 141 141 sys.exit(1) 142 142 143 tests.sort() 144 make_flags = environ.get('MAKEFLAGS') 145 make_cmd = "make" if make_flags and "-j" in make_flags else "make -j8" 146 143 147 if options.list : 144 148 print("\n".join(tests))
Note: See TracChangeset
for help on using the changeset viewer.