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

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

Comments

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

REPOSITORY
  rHG Mercurial

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

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 is not supported for chg.
+  $ hg --cwd c --config x --traceback id 2>&1 | grep -i 'traceback'
+  [1]
+#endif
 
 Testing --time: