# HG changeset patch # User Saurabh Singh # Date 2017-10-03 18:10:03 # Node ID f2268edf38d5ab8c7617b8e069aa1f501d77d910 # Parent 73d8a5283f87379b835081e9cdeeb2c403976246 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 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 --debug: 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: