# HG changeset patch # User Simon Heimberg # Date 2013-07-22 08:04:53 # Node ID 9aee3d01439407c66fedc30d52b8e1845387b3bb # Parent 3119dc155ac276e45d3c223453940e5c1009756c 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. diff --git a/tests/test-check-code-hg.t b/tests/test-check-code-hg.t --- a/tests/test-check-code-hg.t +++ b/tests/test-check-code-hg.t @@ -26,6 +26,5 @@ Prepare check for Python files without p 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