comparison tests/run-tests.py @ 20444:1478a9ce6790

run-tests: fix typo and print out failing line Instead of stripping the newline and printing the line, only the newline was printed. The output on buildbot will make more sense now.
author Simon Heimberg <simohe@besonet.ch>
date Tue, 11 Feb 2014 01:15:07 +0100
parents 7a259dfe24f7
children c230dba66412
comparison
equal deleted inserted replaced
20443:b68984d288d4 20444:1478a9ce6790
798 if r == '+glob': 798 if r == '+glob':
799 lout = el[:-1] + ' (glob)\n' 799 lout = el[:-1] + ' (glob)\n'
800 r = False 800 r = False
801 elif r == '-glob': 801 elif r == '-glob':
802 log('\ninfo, unnecessary glob in %s (after line %d):' 802 log('\ninfo, unnecessary glob in %s (after line %d):'
803 ' %s (glob)\n' % (test, pos, el[-1])) 803 ' %s (glob)\n' % (test, pos, el[:-1]))
804 r = True # pass on unnecessary glob 804 r = True # pass on unnecessary glob
805 else: 805 else:
806 log('\ninfo, unknown linematch result: %r\n' % r) 806 log('\ninfo, unknown linematch result: %r\n' % r)
807 r = False 807 r = False
808 if r: 808 if r: