singhsrb created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers.
REVISION SUMMARY The test is broken when run with chg because it prints a different error message when chg is running. This commit fixes the test by special casing for chg. TEST PLAN Ran the test 'test-dispatch.t' with and without '--chg' option. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D1126 AFFECTED FILES tests/test-dispatch.t CHANGE DETAILS diff --git a/tests/test-dispatch.t b/tests/test-dispatch.t --- a/tests/test-dispatch.t +++ b/tests/test-dispatch.t @@ -68,8 +68,21 @@ $ mkdir $TESTTMP/repo1 $ cd $TESTTMP/repo1 $ rm -rf $TESTTMP/repo1 + +#endif + +#if rmcwd no-chg + $ HGDEMANDIMPORT=disable hg version -q abort: error getting current working directory: * (glob) [255] #endif + +#if rmcwd chg + + $ HGDEMANDIMPORT=disable hg version -q + chg: abort: failed to getcwd (errno = 2, No such file or directory) + [255] + +#endif To: singhsrb, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel