Mercurial > hg
changeset 25869:a72e304df528 stable
test: move ignore test run into a subdirectory
Previously the hgignore test just called hg init in the test directory. A future
patch needs to test hgignore stuff from outside of the repo, so let's move the
entire test repo into a subdirectory.
author | Durham Goode <durham@fb.com> |
---|---|
date | Fri, 24 Jul 2015 16:43:21 -0700 |
parents | 777235417457 |
children | 3de48ff62733 |
files | tests/test-hgignore.t |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-hgignore.t Mon Jul 13 13:13:17 2015 +0800 +++ b/tests/test-hgignore.t Fri Jul 24 16:43:21 2015 -0700 @@ -1,4 +1,5 @@ - $ hg init + $ hg init ignorerepo + $ cd ignorerepo Issue562: .hgignore requires newline at end: @@ -44,7 +45,7 @@ $ echo "*.o" > .hgignore $ hg status - abort: $TESTTMP/.hgignore: invalid pattern (relre): *.o (glob) + abort: $TESTTMP/ignorerepo/.hgignore: invalid pattern (relre): *.o (glob) [255] $ echo ".*\.o" > .hgignore @@ -69,7 +70,7 @@ $ echo > .hgignore $ cat >> $HGRCPATH << EOF > [ui] - > ignore.other = $TESTTMP/.hg/testhgignore + > ignore.other = $TESTTMP/ignorerepo/.hg/testhgignore > EOF $ echo "glob:**.o" > .hg/testhgignore $ hg status @@ -107,7 +108,7 @@ $ echo "syntax: invalid" > .hgignore $ hg status - $TESTTMP/.hgignore: ignoring invalid syntax 'invalid' (glob) + $TESTTMP/ignorerepo/.hgignore: ignoring invalid syntax 'invalid' (glob) A dir/b.o ? .hgignore ? a.c