diff tests/run-tests.py @ 17741:a51304b851c6

run-tests: use more explicit criteria for detecting no-eol Preparing for the situation where there could be unsalted lines not terminated with \n.
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 10 Oct 2012 01:37:53 +0200
parents 5b08e8b7ab00
children 405b6bd015df
line wrap: on
line diff
--- a/tests/run-tests.py	Wed Oct 03 13:19:53 2012 -0700
+++ b/tests/run-tests.py	Wed Oct 10 01:37:53 2012 +0200
@@ -690,8 +690,7 @@
             lout, lcmd = l.split(salt, 1)
 
         if lout:
-            if lcmd:
-                # output block had no trailing newline, clean up
+            if not lout.endswith('\n'):
                 lout += ' (no-eol)\n'
 
             # find the expected output at the current position