[PATCH 2 of 2 V2 stable] run-tests: produce '!' mark after running a failing test

Anurag Goel anurag.dsps at gmail.com
Wed Jun 11 15:17:33 CDT 2014


# HG changeset patch
# User anuraggoel <anurag.dsps at gmail.com>
# Date 1402516702 -19800
#      Thu Jun 12 01:28:22 2014 +0530
# Node ID f0289a8e8980ddcd5ba05a247ddb62b17cbb6e21
# Parent  855d92fb3d2328f7c11d57809350e00cbb256633
run-tests: produce '!' mark after running a failing test

This patch  fixes a regression recently introduced by a refactoring.
'!' mark denotes that the test gets failed while testing.

diff -r 855d92fb3d23 -r f0289a8e8980 tests/run-tests.py
--- a/tests/run-tests.py	Thu Jun 12 01:13:14 2014 +0530
+++ b/tests/run-tests.py	Thu Jun 12 01:28:22 2014 +0530
@@ -1078,6 +1078,7 @@
         else:
             if not self._options.nodiff:
                 self.stream.write('\nERROR: %s output changed\n' % test)
+            self.stream.write('!')
 
     def addError(self, *args, **kwargs):
         super(TestResult, self).addError(*args, **kwargs)


More information about the Mercurial-devel mailing list