D5057: test-bookmarks-pushpull: use correct tmp dir for no-bm-move.sh

mbthomas (Mark Thomas) phabricator at mercurial-scm.org
Sat Oct 13 08:50:05 UTC 2018


mbthomas created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  test-bookmarks-pushpull.t writes a temporary file in $TESTDIR instead of
  $TESTTMP.  Make it use $TESTTMP instead.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D5057

AFFECTED FILES
  tests/test-bookmarks-pushpull.t

CHANGE DETAILS

diff --git a/tests/test-bookmarks-pushpull.t b/tests/test-bookmarks-pushpull.t
--- a/tests/test-bookmarks-pushpull.t
+++ b/tests/test-bookmarks-pushpull.t
@@ -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



To: mbthomas, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list