tests: make a multi-statement hook in bundle2-exchange Windows compatible
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 24 Dec 2014 12:07:59 -0500
changeset 23672 7853e8603f4a
parent 23670 6721199ac78a
child 23673 69cd91d04117
tests: make a multi-statement hook in bundle2-exchange Windows compatible This is similar to the fix in 7dd1870120b2.
tests/test-bundle2-exchange.t
--- a/tests/test-bundle2-exchange.t	Mon Dec 29 13:10:47 2014 -0600
+++ b/tests/test-bundle2-exchange.t	Wed Dec 24 12:07:59 2014 -0500
@@ -7,6 +7,11 @@
 
 enable obsolescence
 
+  $ cat > $TESTDIR/bundle2-pushkey-hook.sh << EOF
+  > echo pushkey: lock state after \"\$HG_NAMESPACE\"
+  > hg debuglock
+  > EOF
+
   $ cat >> $HGRCPATH << EOF
   > [experimental]
   > evolution=createmarkers,exchange
@@ -24,7 +29,7 @@
   > b2x-pretransactionclose.tip = hg log -r tip -T "pre-close-tip:{node|short} {phase} {bookmarks}\n"
   > b2x-transactionclose.tip = hg log -r tip -T "postclose-tip:{node|short} {phase} {bookmarks}\n"
   > b2x-transactionclose.env = sh -c  "HG_LOCAL= python \"$TESTDIR/printenv.py\" b2x-transactionclose"
-  > pushkey= echo pushkey: lock state after \"\$HG_NAMESPACE\"; hg debuglock
+  > pushkey= sh "$TESTDIR/bundle2-pushkey-hook.sh"
   > EOF
 
 The extension requires a repo (currently unused)