Patchwork D913: test-globalopts: make the test compatible with chg

login
register
mail settings
Submitter phabricator
Date Oct. 3, 2017, 6:10 p.m.
Message ID <f5cf0783b533562316297558ca03f543@localhost.localdomain>
Download mbox | patch
Permalink /patch/24441/
State Not Applicable
Headers show

Comments

phabricator - Oct. 3, 2017, 6:10 p.m.
singhsrb updated this revision to Diff 2381.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D913?vs=2380&id=2381

REVISION DETAIL
  https://phab.mercurial-scm.org/D913

AFFECTED FILES
  tests/test-globalopts.t

CHANGE DETAILS




To: singhsrb, #hg-reviewers, quark
Cc: quark, mercurial-devel

Patch

diff --git a/tests/test-globalopts.t b/tests/test-globalopts.t
--- a/tests/test-globalopts.t
+++ b/tests/test-globalopts.t
@@ -263,8 +263,14 @@ 
 
 Testing --traceback:
 
+#if no-chg
   $ hg --cwd c --config x --traceback id 2>&1 | grep -i 'traceback'
   Traceback (most recent call last):
+#else
+Traceback for '--config' errors not supported with chg.
+  $ hg --cwd c --config x --traceback id 2>&1 | grep -i 'traceback'
+  [1]
+#endif
 
 Testing --time: