diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-05-09 11:34:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-09 11:34:01 +0200 |
commit | 74683fc6247c522ae955a6e7308b8ff51def35d8 (patch) | |
tree | efc54a62e658f26c9fe66e257f4740923307096b /Lib/test/libregrtest/main.py | |
parent | 9da408d15bdef624a5632182cb4edf98001fa82f (diff) | |
download | cpython-git-74683fc6247c522ae955a6e7308b8ff51def35d8.tar.gz |
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().
Diffstat (limited to 'Lib/test/libregrtest/main.py')
-rw-r--r-- | Lib/test/libregrtest/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py index 2cfbdd12b2..e068b925d5 100644 --- a/Lib/test/libregrtest/main.py +++ b/Lib/test/libregrtest/main.py @@ -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: |