set PATH during testcase
authorChristian Grothoff <christian@grothoff.org>
Thu, 2 Feb 2017 09:16:12 +0000 (10:16 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 2 Feb 2017 09:16:12 +0000 (10:16 +0100)
src/dht/Makefile.am
src/dht/test_dht_tools.py.in

index b4c03ba607eec8471b9ce8e5956214eaad488c18..26beb300ba52644db702e1ae3ddd0f64c4a85acc 100644 (file)
@@ -254,7 +254,7 @@ check_SCRIPTS = \
   test_dht_tools.py
 endif
 
-do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
+do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g'
 
 %.py: %.py.in Makefile
        $(do_subst) < $(srcdir)/$< > $@
index 9489d12c15361164cccf02cc0527210253162701..5ceabbfada96e0d537ec92eb5d7c4b5f3bcb2284 100644 (file)
@@ -20,6 +20,8 @@ import subprocess
 import time
 import tempfile
 
+os.environ["PATH"] = "@bindir@" + ":" + os.environ["PATH"];
+
 if os.name == "nt":
   tmp = os.getenv ("TEMP")
 else: