( )⚙ D913 test-globalopts: make the test compatible with chg

This is an archive of the discontinued Mercurial Phabricator instance.

test-globalopts: make the test compatible with chg
ClosedPublic

Authored by singhsrb on Oct 2 2017, 8:16 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

singhsrb created this revision.Oct 2 2017, 8:16 PM
quark requested changes to this revision.Oct 2 2017, 11:33 PM
quark added a subscriber: quark.

--traceback turns on traceback printing. This means chg does not do what is expected.

To unblock the test, we can explicitly document that chg is broken here:

#if chg
BROKEN: --traceback does not show --config errors.
   ...
#else
   ...
#endif
This revision now requires changes to proceed.Oct 2 2017, 11:33 PM
singhsrb updated this revision to Diff 2380.Oct 3 2017, 2:02 PM
singhsrb updated this revision to Diff 2381.Oct 3 2017, 2:10 PM
quark accepted this revision.Oct 3 2017, 8:11 PM
This revision was automatically updated to reflect the committed changes.