diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-02-06 11:42:00 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-02-06 11:42:00 (GMT) |
commit | 5bad70def671612835d1fdacd83f8534920f4dcd (patch) | |
tree | b80b13b2f7bd3b431281b2d4ee9ed77f62c69e21 /Lib/test/libregrtest/main.py | |
parent | 7b620a448e95387cdd79c56937a700deb6079b14 (diff) | |
download | cpython-5bad70def671612835d1fdacd83f8534920f4dcd.zip cpython-5bad70def671612835d1fdacd83f8534920f4dcd.tar.gz cpython-5bad70def671612835d1fdacd83f8534920f4dcd.tar.bz2 |
regrtest: don't fail immediately if a child does crash
Issue #29362: Catch a crash of a worker process as a normal failure and
continue to run next tests. It allows to get the usual test summary: single
line result (OK/FAIL), total duration, etc.
Diffstat (limited to 'Lib/test/libregrtest/main.py')
-rw-r--r-- | Lib/test/libregrtest/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/main.py b/Lib/test/libregrtest/main.py index 61a9876..de1f4f9 100644 --- a/Lib/test/libregrtest/main.py +++ b/Lib/test/libregrtest/main.py @@ -107,7 +107,7 @@ class Regrtest: self.test_times.append((test_time, test)) if ok == PASSED: self.good.append(test) - elif ok == FAILED: + elif ok in (FAILED, CHILD_ERROR): self.bad.append(test) elif ok == ENV_CHANGED: self.environment_changed.append(test) |