Changeset 9cd44ba
- Timestamp:
- Mar 3, 2022, 2:43:18 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- d529ad0
- Parents:
- d9d8b9f
- Location:
- tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/tools.py
rd9d8b9f r9cd44ba 290 290 ################################################################################ 291 291 # count number of jobs to create 292 def job_count( options , tests):292 def job_count( options ): 293 293 # check if the user already passed in a number of jobs for multi-threading 294 294 if not options.jobs: … … 317 317 sys.exit(1) 318 318 319 return min( options.jobs, len(tests) ), force319 return options.jobs, force 320 320 321 321 # enable core dumps for all the test children -
tests/test.py
rd9d8b9f r9cd44ba 418 418 print('WARNING: test "{}" has empty .expect file'.format(t.target()), file=sys.stderr) 419 419 420 options.jobs, forceJobs = job_count( options ) 421 settings.update_make_cmd(forceJobs, options.jobs) 422 420 423 # for each build configurations, run the test 421 424 with Timed() as total_dur: … … 430 433 local_tests = settings.ast.filter( tests ) 431 434 local_tests = settings.arch.filter( local_tests ) 432 options.jobs, forceJobs = job_count( options, local_tests )433 settings.update_make_cmd(forceJobs, options.jobs)434 435 435 436 # check the build configuration works 436 437 settings.validate() 438 jobs = min(options.jobs, len(local_tests)) 437 439 438 440 # print configuration … … 440 442 'Regenerating' if settings.generating else 'Running', 441 443 len(local_tests), 442 options.jobs,444 jobs, 443 445 settings.ast.string, 444 446 settings.arch.string, … … 450 452 451 453 # otherwise run all tests and make sure to return the correct error code 452 failed = run_tests(local_tests, options.jobs)454 failed = run_tests(local_tests, jobs) 453 455 if failed: 454 456 if not settings.continue_:
Note: See TracChangeset
for help on using the changeset viewer.