# HG changeset patch # User Matt Harbison # Date 2018-03-31 01:12:09 # Node ID 72ccb07163021e45c814ec9df86255d90d5fbdef # Parent afa8126a884b7ad4ba3c34533326a3ea336e6ab2 tests: stabilize test-fix.t for Windows diff --git a/tests/test-fix.t b/tests/test-fix.t --- a/tests/test-fix.t +++ b/tests/test-fix.t @@ -514,8 +514,11 @@ print the filename if it is relevant. $ 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