# HG changeset patch # User Durham Goode # Date 2015-07-24 23:43:21 # Node ID a72e304df528c1ff1196399899e29d948d520dc7 # Parent 777235417457827b48a5c39b1c7b0bf09be9ba72 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. diff --git a/tests/test-hgignore.t b/tests/test-hgignore.t --- a/tests/test-hgignore.t +++ b/tests/test-hgignore.t @@ -1,4 +1,5 @@ - $ hg init + $ hg init ignorerepo + $ cd ignorerepo Issue562: .hgignore requires newline at end: @@ -44,7 +45,7 @@ Should display baz only: $ 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 @@ Test that patterns from ui.ignore option $ 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 @@ Test relative ignore path (issue4473): $ 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