tests: Print remaining jobs in test_runner.py

This helps finding out which tests fail to finish.
This commit is contained in:
Steven Roose 2019-02-22 18:06:34 +00:00
parent 169dced9a4
commit 2e5d482659
No known key found for this signature in database
GPG key ID: 7FC91380BB4CE800

View file

@ -477,6 +477,11 @@ class TestHandler:
log_stderr))
if not self.jobs:
raise IndexError('pop from empty list')
# Print remaining running jobs when all jobs have been started.
if not self.test_list:
print("Remaining jobs: [{}]".format(", ".join(j[0] for j in self.jobs)))
dot_count = 0
while True:
# Return first proc that finishes