diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-02 10:16:12 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-02 10:16:12 +0100 |
commit | b10aed674f795793f20162f45cd8a1707b308718 (patch) | |
tree | c562293c50d28d0f47a4fec05eddcbd77ee6d873 /src/dht | |
parent | 68ab49e28a51b4d877cbd37ad10868a482133c52 (diff) | |
download | gnunet-b10aed674f795793f20162f45cd8a1707b308718.tar.gz gnunet-b10aed674f795793f20162f45cd8a1707b308718.zip |
set PATH during testcase
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/Makefile.am | 2 | ||||
-rw-r--r-- | src/dht/test_dht_tools.py.in | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/dht/Makefile.am b/src/dht/Makefile.am index b4c03ba60..26beb300b 100644 --- a/src/dht/Makefile.am +++ b/src/dht/Makefile.am | |||
@@ -254,7 +254,7 @@ check_SCRIPTS = \ | |||
254 | test_dht_tools.py | 254 | test_dht_tools.py |
255 | endif | 255 | endif |
256 | 256 | ||
257 | do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' | 257 | do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g' |
258 | 258 | ||
259 | %.py: %.py.in Makefile | 259 | %.py: %.py.in Makefile |
260 | $(do_subst) < $(srcdir)/$< > $@ | 260 | $(do_subst) < $(srcdir)/$< > $@ |
diff --git a/src/dht/test_dht_tools.py.in b/src/dht/test_dht_tools.py.in index 9489d12c1..5ceabbfad 100644 --- a/src/dht/test_dht_tools.py.in +++ b/src/dht/test_dht_tools.py.in | |||
@@ -20,6 +20,8 @@ import subprocess | |||
20 | import time | 20 | import time |
21 | import tempfile | 21 | import tempfile |
22 | 22 | ||
23 | os.environ["PATH"] = "@bindir@" + ":" + os.environ["PATH"]; | ||
24 | |||
23 | if os.name == "nt": | 25 | if os.name == "nt": |
24 | tmp = os.getenv ("TEMP") | 26 | tmp = os.getenv ("TEMP") |
25 | else: | 27 | else: |