changeset 23672:7853e8603f4a

tests: make a multi-statement hook in bundle2-exchange Windows compatible This is similar to the fix in 7dd1870120b2.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 24 Dec 2014 12:07:59 -0500
parents 6721199ac78a
children 69cd91d04117
files tests/test-bundle2-exchange.t
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)