test-bundle2-exchange: create temp script in $TESTTMP, not $TESTDIR
authorMartin von Zweigbergk <martinvonz@google.com>
Wed, 07 Jan 2015 14:30:40 -0800
changeset 23759 cdfc47266e53
parent 23758 399a8403cb54
child 23760 50229b4c33be
test-bundle2-exchange: create temp script in $TESTTMP, not $TESTDIR The bundle2-pushkey-hook.sh script is currently created in $TESTTMP, and leaves an untracked file in that directory (tests/) after running.
tests/test-bundle2-exchange.t
--- a/tests/test-bundle2-exchange.t	Wed Jan 07 15:55:02 2015 -0500
+++ b/tests/test-bundle2-exchange.t	Wed Jan 07 14:30:40 2015 -0800
@@ -7,7 +7,7 @@
 
 enable obsolescence
 
-  $ cat > $TESTDIR/bundle2-pushkey-hook.sh << EOF
+  $ cat > $TESTTMP/bundle2-pushkey-hook.sh << EOF
   > echo pushkey: lock state after \"\$HG_NAMESPACE\"
   > hg debuglock
   > EOF
@@ -29,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= sh "$TESTDIR/bundle2-pushkey-hook.sh"
+  > pushkey= sh "$TESTTMP/bundle2-pushkey-hook.sh"
   > EOF
 
 The extension requires a repo (currently unused)