changeset 19495:9aee3d014394 stable

tests: test-check-code-hg.t works for all files to check with xargs, backslashes are eaten up. Convert them to slashes therefore. This is only a problem with ls (on windows). hg manifest returns slashes. The pipe char is moved before the line end for telling check-code.py that sed does not modify the output.
author Simon Heimberg <simohe@besonet.ch>
date Mon, 22 Jul 2013 10:04:53 +0200
parents 3119dc155ac2
children 607191a45f8c
files tests/test-check-code-hg.t
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-code-hg.t	Mon Jul 22 10:04:45 2013 +0200
+++ b/tests/test-check-code-hg.t	Mon Jul 22 10:04:53 2013 +0200
@@ -26,6 +26,5 @@
 
 New errors are not allowed. Warnings are strongly discouraged.
 
-  $ { hg manifest 2>/dev/null; ls "$TESTTMP"/*.py; } \
-  >   | xargs "$check_code" --warnings --per-file=0 \
-  >   || false
+  $ { hg manifest 2>/dev/null; ls "$TESTTMP"/*.py | sed 's-\\-/-g'; } |
+  >   xargs "$check_code" --warnings --per-file=0 || false