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

singhsrb (Saurabh Singh) phabricator at mercurial-scm.org
Tue Oct 3 14:10:12 EDT 2017


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

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:
 



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


More information about the Mercurial-devel mailing list