# HG changeset patch # User Simon Heimberg # Date 1392276584 -3600 # Node ID fd5aa85ac2b9d34f3252b818f8b7c162f45543ee # Parent 3c30458319ff5b04200f5bee9f12a25a16bc37a8 run-tests: unnecessary globs also count as warnings When a glob is unnecessary, now there's a diff output and 'run-tests.py -i' works for accepting the output. On windows, some tests which have "passed" currently (with some info lines printed) will now be reported as "warned". (I recommend to recognize "warned" by buildbot before applying this patch.) [ original upstream message ] diff -r 3c30458319ff -r fd5aa85ac2b9 tests/run-tests.py --- a/tests/run-tests.py Thu Feb 13 08:27:53 2014 +0100 +++ b/tests/run-tests.py Thu Feb 13 08:29:44 2014 +0100 @@ -799,9 +799,8 @@ lout = el[:-1] + ' (glob)\n' r = 0 # warn only elif r == '-glob': - log('\ninfo, unnecessary glob in %s (after line %d):' - ' %s (glob)\n' % (test, pos, el[:-1])) - r = True # pass on unnecessary glob + lout = ''.join(el.rsplit(' (glob)', 1)) + r = 0 # warn only else: log('\ninfo, unknown linematch result: %r\n' % r) r = False