Patchwork [1,of,2] tests: flatten repo structure in test-commit.t

login
register
mail settings
Submitter Anton Shestakov
Date May 4, 2019, 4:46 a.m.
Message ID <49d7c0579df397ff0594.1556945217@df1>
Download mbox | patch
Permalink /patch/39938/
State Accepted
Headers show

Comments

Anton Shestakov - May 4, 2019, 4:46 a.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1556863634 -28800
#      Fri May 03 14:07:14 2019 +0800
# Node ID 49d7c0579df397ff05941d09ce97967e6ca9d53e
# Parent  fdbeacb9d456c0b98b00df66a9921fd884826cf1
# EXP-Topic post-commit-status
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.

Patch

diff --git a/tests/test-commit.t b/tests/test-commit.t
--- a/tests/test-commit.t
+++ b/tests/test-commit.t
@@ -708,6 +708,8 @@  verify pathauditor blocks evil filepaths
   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 @@  verify pathauditor blocks evil filepaths
   abort: commit message unchanged
   [255]
 
+  $ cd ..
+
 test that text below the --- >8 --- special string is ignored
 
   $ cat <<'EOF' > $TESTTMP/lowercaseline.sh