diff tests/run-tests.py @ 22838:9a20f53e436f

run-tests: handle --jobs and --first gracefully Without this change, --first causes currently-running tests to explode in violent and surprising ways when their temporary directory gets cleaned up. Now we just suppress failure messages from non-first failures when running in --first mode.
author Augie Fackler <raf@durin42.com>
date Thu, 09 Oct 2014 15:10:40 -0400
parents f166e08ece3b
children 9f0f50c63e16
line wrap: on
line diff
--- a/tests/run-tests.py	Mon Oct 06 16:35:02 2014 -0400
+++ b/tests/run-tests.py	Thu Oct 09 15:10:40 2014 -0400
@@ -1189,6 +1189,11 @@
 
     def addOutputMismatch(self, test, ret, got, expected):
         """Record a mismatch in test output for a particular test."""
+        if self.shouldStop:
+            # don't print, some other test case already failed and
+            # printed, we're just stale and probably failed due to our
+            # temp dir getting cleaned up.
+            return
 
         accepted = False
         failed = False