test-globalopts: make the test compatible with chg
authorSaurabh Singh <singhsrb@fb.com>
Tue, 03 Oct 2017 11:10:03 -0700
changeset 34443 f2268edf38d5
parent 34442 73d8a5283f87
child 34444 df78b1a24094
test-globalopts: make the test compatible with chg The test fails when run with the '--chg' option. Therefore, this commit modifies the test to make it compatible with chg. Test Plan: Ran 'test-globalopts.t' with and without the '--chg' option. Differential Revision: https://phab.mercurial-scm.org/D913
tests/test-globalopts.t
--- a/tests/test-globalopts.t	Mon Oct 02 16:11:57 2017 -0700
+++ b/tests/test-globalopts.t	Tue Oct 03 11:10:03 2017 -0700
@@ -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: