changeset 24827:2f2de8a7f97f stable

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 20 Apr 2015 13:43:10 -0400
parents 9b02b678888e
children 5045a003260b
files tests/test-hook.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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