# HG changeset patch # User Mads Kiilerich # Date 2012-10-09 23:37:53 # Node ID a51304b851c63037b65620e6fbbbe2b0fe0f9339 # Parent e6067bec18da78a75952425206a6cb9e8583f837 run-tests: use more explicit criteria for detecting no-eol Preparing for the situation where there could be unsalted lines not terminated with \n. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -690,8 +690,7 @@ def tsttest(test, wd, options, replaceme 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