Mercurial > hg
changeset 12621:9a2de8dae27b
run-tests: handle .tst not ending with an LF
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 08 Oct 2010 17:00:38 -0500 |
parents | 9a9312e84e4e |
children | 01b6f058021b |
files | tests/run-tests.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Fri Oct 08 22:42:32 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')