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

login
register
mail settings
Submitter Anurag Goel
Date June 11, 2014, 8:17 p.m.
Message ID <f0289a8e8980ddcd5ba0.1402517853@ubuntu.ubuntu-domain>
Download mbox | patch
Permalink /patch/4974/
State Accepted
Commit 07eb76186b416ebd34780e455969fe431e11ae7e
Headers show

Comments

Anurag Goel - June 11, 2014, 8:17 p.m.
# HG changeset patch
# User anuraggoel <anurag.dsps@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.

Patch

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)