# HG changeset patch # User Mads Kiilerich # Date 1349825873 -7200 # Node ID bb419c4bfdd9a6dee7401b07f759c112729805f5 # Parent 294cea906d3ad5a718fa392b7c6be40ae31764d0 run-tests: use more explicit criteria for detecting no-eol Preparing for the situation where there could be unsalted lines not terminated with \n. [ original upstream message ] diff -r 294cea906d3a -r bb419c4bfdd9 tests/run-tests.py --- a/tests/run-tests.py Thu Oct 04 16:52:20 2012 +0200 +++ 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