Mercurial > hg
changeset 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 | c312ef382033 |
children | eb763217152a |
files | tests/run-tests.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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)