Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 23077:605a8cb61a0c stable
run-tests: output diffs with only forward slashes
This removes some gratuitous variance when testing on Windows with
test-run-tests.t.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 23 Oct 2014 13:44:34 -0500 |
parents | 5ba11ab48fcf |
children | e53f6b72a0e4 |
line wrap: on
line diff
--- a/tests/run-tests.py Thu Oct 23 12:35:10 2014 -0200 +++ b/tests/run-tests.py Thu Oct 23 13:44:34 2014 -0500 @@ -298,6 +298,7 @@ lines = [] for line in difflib.unified_diff(expected, output, ref, err): if line.startswith('+++') or line.startswith('---'): + line = line.replace('\\', '/') if line.endswith(' \n'): line = line[:-2] + '\n' lines.append(line)