tests/test-hgrc
changeset 11224 f23f87462c18
parent 10567 992723445a29
child 11225 d6dbd5e4ee72
--- a/tests/test-hgrc	Wed May 26 16:16:47 2010 +0200
+++ b/tests/test-hgrc	Wed May 26 14:03:29 2010 -0700
@@ -23,8 +23,11 @@
     > $HGRCPATH
 hg showconfig foo
 
-echo '%include /no-such-file' > $HGRCPATH
+FAKEPATH=/path/to/nowhere
+export FAKEPATH
+echo '%include $FAKEPATH/no-such-file' > $HGRCPATH
 hg version 2>&1 | sed -e "s|$HGRCPATH|\$HGRCPATH|"
+unset FAKEPATH
 
 # HGPLAIN
 cd ..