changeset 37791:72ccb0716302 stable

tests: stabilize test-fix.t for Windows
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 30 Mar 2018 21:12:09 -0400
parents afa8126a884b
children 33d26f7bd6ca
files tests/test-fix.t
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-fix.t	Wed Apr 18 15:39:22 2018 -0400
+++ b/tests/test-fix.t	Fri Mar 30 21:12:09 2018 -0400
@@ -514,8 +514,11 @@
   $ printf "hello\n" > hello.txt
   $ hg add
   adding hello.txt
-  $ hg --config "fix.fail:command=printf 'HELLO\n' ; \
-  >                               printf '{rootpath}: some\nerror' >&2" \
+  $ cat >> $TESTTMP/cmd.sh <<'EOF'
+  > printf 'HELLO\n'
+  > printf "$@: some\nerror" >&2
+  > EOF
+  $ hg --config "fix.fail:command=sh $TESTTMP/cmd.sh {rootpath}" \
   >    --config "fix.fail:fileset=hello.txt" \
   >    fix --working-dir
   [wdir] fail: hello.txt: some