tests/run-tests.py
changeset 20600 2e68882852ee
parent 20541 44dcca9be1d5
child 20601 72d843e8cb6d
--- a/tests/run-tests.py	Thu Feb 27 20:01:28 2014 -0800
+++ b/tests/run-tests.py	Sun Feb 16 23:36:02 2014 +0100
@@ -797,10 +797,10 @@
             if isinstance(r, str):
                 if r == '+glob':
                     lout = el[:-1] + ' (glob)\n'
-                    r = 0 # warn only
+                    r = '' # warn only this line
                 elif r == '-glob':
                     lout = ''.join(el.rsplit(' (glob)', 1))
-                    r = 0 # warn only
+                    r = '' # warn only this line
                 else:
                     log('\ninfo, unknown linematch result: %r\n' % r)
                     r = False
@@ -810,7 +810,7 @@
                 if needescape(lout):
                     lout = stringescape(lout.rstrip('\n')) + " (esc)\n"
                 postout.append("  " + lout) # let diff deal with it
-                if r != 0: # != warn only
+                if r != '': # if line failed
                     warnonly = False
 
         if lcmd: