comparison tests/test-basic.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 5890e5872f36
children ecaa0ad4ed4f
comparison
equal deleted inserted replaced
37341:d62d2e346acf 37342:4e6a6d0dccee
1 Create a repository: 1 Create a repository:
2 2
3 #if no-extraextensions
3 $ hg config 4 $ hg config
4 devel.all-warnings=true 5 devel.all-warnings=true
5 devel.default-date=0 0 6 devel.default-date=0 0
6 extensions.fsmonitor= (fsmonitor !) 7 extensions.fsmonitor= (fsmonitor !)
7 largefiles.usercache=$TESTTMP/.cache/largefiles 8 largefiles.usercache=$TESTTMP/.cache/largefiles
11 ui.mergemarkers=detailed 12 ui.mergemarkers=detailed
12 ui.promptecho=True 13 ui.promptecho=True
13 web.address=localhost 14 web.address=localhost
14 web\.ipv6=(?:True|False) (re) 15 web\.ipv6=(?:True|False) (re)
15 web.server-header=testing stub value 16 web.server-header=testing stub value
17 #endif
18
16 $ hg init t 19 $ hg init t
17 $ cd t 20 $ cd t
18 21
19 Prepare a changeset: 22 Prepare a changeset:
20 23