run-tests: produce error on running a failing test
authoranuraggoel <anurag.dsps@gmail.com>
Thu, 12 Jun 2014 01:36:57 +0530
changeset 21735 5ee547fdb0be
parent 21734 34e0bd895afc
child 21736 07eb76186b41
run-tests: produce error on running a failing test This patch fixes a regression recently introduced by a refactoring (see 92a6b16c9186 and about 200 previous changesets from Gregory Szorc). It produce an error message everytime with a test filename which gets fail while testing except at one condition when '--nodiff' option is enabled.
tests/run-tests.py
--- a/tests/run-tests.py	Fri May 30 12:10:19 2014 -0700
+++ b/tests/run-tests.py	Thu Jun 12 01:36:57 2014 +0530
@@ -1076,6 +1076,9 @@
 
         if self._options.first:
             self.stop()
+        else:
+            if not self._options.nodiff:
+                self.stream.write('\nERROR: %s output changed\n' % test)
 
     def addError(self, *args, **kwargs):
         super(TestResult, self).addError(*args, **kwargs)