[PATCH 2 of 5] tests: make directory to prevent test process from going out of $TESTTMP

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Mon Feb 20 11:28:01 EST 2017


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1487607659 -32400
#      Tue Feb 21 01:20:59 2017 +0900
# Node ID f2d15208edc48088e9e2e266f5c22b0310c70b2b
# Parent  a09a59d24e389e291bb2bbf943644d60a9231ce0
tests: make directory to prevent test process from going out of $TESTTMP

Before this patch, test process for test-bookmarks.t goes out of
$TESTTMP at "cd .." before creation of "orderrepo" repository.

To prevent test process from going out of $TESTTMP, this patch makes
directory "repo" sub-directory and executes almost all test scenarios
in test-bookmarks.t under it.

This is preparation for new test added in subsequent patch.

diff --git a/tests/test-bookmarks.t b/tests/test-bookmarks.t
--- a/tests/test-bookmarks.t
+++ b/tests/test-bookmarks.t
@@ -1,4 +1,5 @@
-  $ hg init
+  $ hg init repo
+  $ cd repo
 
 no bookmarks
 
@@ -630,7 +631,7 @@ We warn about divergent during bare upda
      Z                         2:db815d6d32e6
      x  y                      2:db815d6d32e6
   $ hg -R ../cloned-bookmarks-manual-update-with-divergence pull
-  pulling from $TESTTMP
+  pulling from $TESTTMP/repo (glob)
   searching for changes
   adding changesets
   adding manifests


More information about the Mercurial-devel mailing list