changeset 37418:afd7b0afe4a6

tests: don't drop global hgrc Various tests are failing when the simple store extension is loaded because the test overrides HGRCPATH and preempts loading of extensions that were injected via --extra-config-opt. In most cases, it is acceptable to always load the global HGRCPATH. So this commit changes a couple of tests so the global HGRCPATH is still pulled in. Differential Revision: https://phab.mercurial-scm.org/D3098
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 04 Apr 2018 14:25:20 -0700
parents 76d2115cb817
children a84b6eeb2c39
files tests/test-command-template.t tests/test-wireproto.t
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-command-template.t	Wed Apr 04 14:11:43 2018 -0700
+++ b/tests/test-command-template.t	Wed Apr 04 14:25:20 2018 -0700
@@ -284,7 +284,8 @@
 
  so it can be included in hgrc
 
-  $ cat <<'EOF' > myhgrc
+  $ cat <<EOF > myhgrc
+  > %include $HGRCPATH
   > %include map-simple
   > [templates]
   > foo = "{changeset}"
--- a/tests/test-wireproto.t	Wed Apr 04 14:11:43 2018 -0700
+++ b/tests/test-wireproto.t	Wed Apr 04 14:25:20 2018 -0700
@@ -114,10 +114,7 @@
 
 HTTP without the httpheader capability:
 
-  $ HGRCPATH="`pwd`/repo/.hgrc"
-  $ export HGRCPATH
-  $ CAP=httpheader
-  $ . "$TESTDIR/notcapable"
+  $ CAP=httpheader . "$TESTDIR/notcapable"
 
   $ hg serve -R repo -p $HGPORT2 -d --pid-file=hg2.pid -E error2.log -A access2.log
   $ cat hg2.pid >> $DAEMON_PIDS