changeset 23759:cdfc47266e53

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 07 Jan 2015 14:30:40 -0800
parents 399a8403cb54
children 50229b4c33be
files tests/test-bundle2-exchange.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)