Changeset 21c3ea1
- Timestamp:
- Sep 28, 2020, 5:25:56 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d13dd6b
- Parents:
- f866d15
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/test.py
rf866d15 r21c3ea1 262 262 make('clean', output_file=subprocess.DEVNULL, error=subprocess.DEVNULL) 263 263 264 # since python prints stacks by default on a interrupt, redo the interrupt handling to be silent 265 def worker_init(): 266 def sig_int(signal_num, frame): 267 pass 268 269 signal.signal(signal.SIGINT, sig_int) 270 271 # create the executor for our jobs and handle the signal properly 272 pool = multiprocessing.Pool(jobs, worker_init) 264 # create the executor for our jobs 265 pool = multiprocessing.Pool(jobs) 273 266 274 267 failed = False 275 276 def stop(x, y):277 print("Tests interrupted by user", file=sys.stderr)278 sys.exit(1)279 signal.signal(signal.SIGINT, stop)280 268 281 269 # for each test to run
Note: See TracChangeset
for help on using the changeset viewer.