test: setup python path for topic tests stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 09 Aug 2017 12:52:06 +0200
branchstable
changeset 2828 fa2deeb5dd03
parent 2827 498409c72dd2
child 2829 1c529afd3fef
test: setup python path for topic tests This make thing simpler and clearer.
tests/testlib/topic_setup.sh
--- a/tests/testlib/topic_setup.sh	Thu Jul 27 17:38:37 2017 +0200
+++ b/tests/testlib/topic_setup.sh	Wed Aug 09 12:52:06 2017 +0200
@@ -1,4 +1,5 @@
 #!/bin/sh
+. $TESTDIR/testlib/pythonpath.sh
 
 # This file holds logic that is used in many tests.
 # It can be called in a test like this:
@@ -11,5 +12,5 @@
 
 [extensions]
 rebase=
+topic=
 EOF
-echo "topic=$(echo $(dirname $TESTDIR))/hgext3rd/topic" >> $HGRCPATH