Page MenuHomePhabricator

Make test_runner pass SIGINT to running test, and still properly print results.
Open, Needs TriagePublic

Description

You currently get output like this:

uptime.py passed, Duration: 2 s
^CTraceback (most recent call last):py
  File "./test/functional/test_runner.py", line 703, in <module>
    main()
  File "./test/functional/test_runner.py", line 266, in main
    config["environment"]["EXEEXT"], tmpdir, args.jobs, args.coverage, passon_args, build_timings)
  File "./test/functional/test_runner.py", line 310, in run_tests
    num_jobs, test_list, tests_dir, tmpdir, flags)
  File "./test/functional/test_runner.py", line 448, in execute_test_processes
    job_queue.join()
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/queue.py", line 83, in join
    self.all_tasks_done.wait()
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 295, in wait
    waiter.acquire()
KeyboardInterrupt

When it would be nice to have the test results for passed/skipped runs still printed.