Mercurial > hg
diff tests/test-help.t @ 37342:4e6a6d0dccee
tests: conditionalize tests based on presence of custom extensions
The test harness supports injecting extensions via --extra-config-opt.
However, if you do this, various tests that print state about loaded
extensions fail.
This commit teaches the test harness to recognize when custom
extensions are loaded so that tests can use feature sniffing to
conditionalize tests based on that.
Differential Revision: https://phab.mercurial-scm.org/D3039
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 04 Apr 2018 13:21:34 -0700 |
parents | 335e19c6b7fa |
children | aacfca6f9767 |
line wrap: on
line diff
--- a/tests/test-help.t Wed Apr 04 12:16:50 2018 -0700 +++ b/tests/test-help.t Wed Apr 04 13:21:34 2018 -0700 @@ -44,6 +44,10 @@ summary summarize working directory state update update working directory (or switch revisions) +Extra extensions will be printed in help output in a non-reliable order since +the extension is unknown. +#if no-extraextensions + $ hg help Mercurial Distributed SCM @@ -283,6 +287,8 @@ win32mbcs allow the use of MBCS paths with problematic encodings zeroconf discover and advertise repositories on the local network +#endif + Verify that deprecated extensions are included if --verbose: $ hg -v help extensions | grep children @@ -816,6 +822,8 @@ Test that default list of commands omits extension commands +#if no-extraextensions + $ hg help Mercurial Distributed SCM @@ -903,6 +911,7 @@ (use 'hg help -v' to show built-in aliases and global options) +#endif Test list of internal help commands