tests: flatten repo structure in test-commit.t
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 03 May 2019 14:07:14 +0800
changeset 42243 165b1aad43da
parent 42242 1756859a65fa
child 42244 0f01394457a0
tests: flatten repo structure in test-commit.t Let's move to parent directory before `hg init` repos, since they don't need to be nested. It makes amend/strip messages that include full path to the backup bundle shorter, for instance.
tests/test-commit.t
--- a/tests/test-commit.t	Sat May 04 01:16:42 2019 -0400
+++ b/tests/test-commit.t	Fri May 03 14:07:14 2019 +0800
@@ -708,6 +708,8 @@
   abort: path contains illegal component: HG8B6C~2/hgrc
   [255]
 
+  $ cd ..
+
 # test that an unmodified commit template message aborts
 
   $ hg init unmodified_commit_template
@@ -734,6 +736,8 @@
   abort: commit message unchanged
   [255]
 
+  $ cd ..
+
 test that text below the --- >8 --- special string is ignored
 
   $ cat <<'EOF' > $TESTTMP/lowercaseline.sh