Patchwork [1,of,2,V2,stable] run-tests: skipped test should not produce 'i' mark while retesting

login
register
mail settings
Submitter Anurag Goel
Date June 11, 2014, 10:04 p.m.
Message ID <a3f304e4f7715feb4c42.1402524293@ubuntu.ubuntu-domain>
Download mbox | patch
Permalink /patch/4976/
State Accepted
Commit 11e5ad038a7be0bfdf57583397154997f935a04a
Headers show

Comments

Anurag Goel - June 11, 2014, 10:04 p.m.
# HG changeset patch
# User anuraggoel <anurag.dsps@gmail.com>
# Date 1402520812 -19800
#      Thu Jun 12 02:36:52 2014 +0530
# Node ID a3f304e4f7715feb4c4215c6e0d5a62ae61e9047
# Parent  9de4b275e143b889ce62cff88c641751d5ce203f
run-tests: skipped test should not produce 'i' mark while retesting

When '--retest' option is enabled then skipped test should not produce
'i' mark.

Patch

diff -r 9de4b275e143 -r a3f304e4f771 tests/run-tests.py
--- a/tests/run-tests.py	Thu Jun 12 02:17:20 2014 +0530
+++ b/tests/run-tests.py	Thu Jun 12 02:36:52 2014 +0530
@@ -1102,7 +1102,8 @@ 
         if self.showAll:
             self.stream.writeln('ignored %s' % reason)
         else:
-            self.stream.write('i')
+            if reason != 'not retesting':
+                self.stream.write('i')
             self.stream.flush()
 
     def addWarn(self, test, reason):