test-bookmarks-pushpull: use correct tmp dir for no-bm-move.sh
authorMark Thomas <mbthomas@fb.com>
Sat, 13 Oct 2018 08:48:59 +0000
changeset 40231 58d785679e15
parent 40230 0b46e1aa7760
child 40232 d99a588d8515
test-bookmarks-pushpull: use correct tmp dir for no-bm-move.sh test-bookmarks-pushpull.t writes a temporary file in $TESTDIR instead of $TESTTMP. Make it use $TESTTMP instead. Differential Revision: https://phab.mercurial-scm.org/D5057
tests/test-bookmarks-pushpull.t
--- a/tests/test-bookmarks-pushpull.t	Sat Oct 13 05:17:28 2018 +0300
+++ b/tests/test-bookmarks-pushpull.t	Sat Oct 13 08:48:59 2018 +0000
@@ -1231,13 +1231,13 @@
 
 Forbid bookmark move on the server
 
-  $ cat << EOF >> $TESTDIR/no-bm-move.sh
+  $ cat << EOF >> $TESTTMP/no-bm-move.sh
   > #!/bin/sh
   > echo \$HG_NAMESPACE | grep -v bookmarks
   > EOF
   $ cat << EOF >> server/.hg/hgrc
   > [hooks]
-  > prepushkey.no-bm-move= sh $TESTDIR/no-bm-move.sh
+  > prepushkey.no-bm-move= sh $TESTTMP/no-bm-move.sh
   > EOF
 
 pushing changeset is okay