# HG changeset patch # User Patrick Mezard # Date 1286575238 18000 # Node ID 6d3f8caef3b31a2e7fc334bc99f2590aadda1055 # Parent ab2ba4e79bed961e063875c805915e7a2f923aa4 run-tests: handle .tst not ending with an LF [ original upstream description ] diff -r ab2ba4e79bed -r 6d3f8caef3b3 tests/run-tests.py --- a/tests/run-tests.py Mon Sep 27 22:49:30 2010 +0200 +++ b/tests/run-tests.py Fri Oct 08 17:00:38 2010 -0500 @@ -487,6 +487,8 @@ # non-command/result - queue up for merged output after.setdefault(pos, []).append(l) + if script and not script[-1].endswith('\n'): + script[-1] = script[-1] + '\n' script.append('echo %s %s $?\n' % (salt, n + 1)) fd, name = tempfile.mkstemp(suffix='hg-tst')