test-hook.t: don't directly use redirect to /dev/null in hook for Windows stable
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 20 Apr 2015 13:43:10 -0400
branchstable
changeset 24827 2f2de8a7f97f
parent 24826 9b02b678888e
child 24828 5045a003260b
test-hook.t: don't directly use redirect to /dev/null in hook for Windows This goes with 57f1dbc99631. External hooks are run in cmd.exe, which doesn't know about /dev/null, but sh can handle it.
tests/test-hook.t
--- a/tests/test-hook.t	Mon Apr 20 18:13:44 2015 -0500
+++ b/tests/test-hook.t	Mon Apr 20 13:43:10 2015 -0400
@@ -17,7 +17,7 @@
   > pretxnclose = sh -c "HG_LOCAL= HG_TAG= python \"$TESTDIR/printenv.py\" pretxnclose"
   > txnclose = sh -c "HG_LOCAL= HG_TAG= python \"$TESTDIR/printenv.py\" txnclose"
   > txnabort = sh -c "HG_LOCAL= HG_TAG= python \"$TESTDIR/printenv.py\" txnabort"
-  > txnclose.checklock = hg debuglock > /dev/null
+  > txnclose.checklock = sh -c "hg debuglock > /dev/null"
   > EOF
   $ echo a > a
   $ hg add a