run-tests: output diffs with only forward slashes stable
authorMatt Mackall <mpm@selenic.com>
Thu, 23 Oct 2014 13:44:34 -0500
branchstable
changeset 23077 605a8cb61a0c
parent 23076 c312ef382033
child 23078 eb763217152a
run-tests: output diffs with only forward slashes This removes some gratuitous variance when testing on Windows with test-run-tests.t.
tests/run-tests.py
--- 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)