test: rename TOPICROOT to HGTEST_TOPICROOT
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 05 May 2016 21:54:26 +0200
changeset 1694 5fb7f37b82e6
parent 1693 73acbc623830
child 1695 77df6101d3b5
child 1704 b09ac378f025
test: rename TOPICROOT to HGTEST_TOPICROOT Mercurial is about to introduce whitelisting of environment variable, we comply to the planned prefix in advance in a hope to stay compatible in the future.
tests/test-evolve-topic.t
--- a/tests/test-evolve-topic.t	Thu May 05 21:42:49 2016 +0200
+++ b/tests/test-evolve-topic.t	Thu May 05 21:54:26 2016 +0200
@@ -1,9 +1,9 @@
 
 Check we can find the topic extensions
 
-  $ [ -z "$TOPICROOT" ] && echo 'skipped: $TOPICROOT not set' >&2 && exit 80
+  $ [ -z "$HGTEST_TOPICROOT" ] && echo 'skipped: $HGTEST_TOPICROOT not set' >&2 && exit 80
   [1]
-  $ [ ! -e $TOPICROOT/hgext3rd/topic/__init__.py ] && echo 'skipped: no topic repo found at $TOPICROOT' >&2 && exit 80
+  $ [ ! -e $HGTEST_TOPICROOT/hgext3rd/topic/__init__.py ] && echo 'skipped: no topic repo found at $HGTEST_TOPICROOT' >&2 && exit 80
   [1]
   $ cat >> $HGRCPATH <<EOF
   > [defaults]
@@ -18,7 +18,7 @@
   > unified = 0
   > [extensions]
   > rebase = 
-  > topic = $TOPICROOT/hgext3rd/topic/
+  > topic = $HGTEST_TOPICROOT/hgext3rd/topic/
   > EOF
   $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH