changeset 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 b68984d288d4
children 507261c0914f
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Tue Jan 28 15:19:14 2014 -0800
+++ b/tests/run-tests.py	Tue Feb 11 01:15:07 2014 +0100
@@ -800,7 +800,7 @@
                     r = False
                 elif r == '-glob':
                     log('\ninfo, unnecessary glob in %s (after line %d):'
-                        ' %s (glob)\n' % (test, pos, el[-1]))
+                        ' %s (glob)\n' % (test, pos, el[:-1]))
                     r = True # pass on unnecessary glob
                 else:
                     log('\ninfo, unknown linematch result: %r\n' % r)