bpo-30258: regrtest: Fix run_tests_multiprocess() (#1479)

If the child process exited with a non-zero code, don't strip the
last line of stdout anymore.

Add also a sanity check in accumulate_result().
This commit is contained in:
Victor Stinner 2017-05-09 11:34:01 +02:00 committed by GitHub
parent 9da408d15b
commit 74683fc624
2 changed files with 3 additions and 1 deletions

View file

@ -116,6 +116,8 @@ class Regrtest:
elif ok == RESOURCE_DENIED:
self.skipped.append(test)
self.resource_denieds.append(test)
elif ok != INTERRUPTED:
raise ValueError("invalid test result: %r" % ok)
def display_progress(self, test_index, test):
if self.ns.quiet: