aboutsummaryrefslogtreecommitdiff
path: root/src/statistics
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-10 12:03:13 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-10 12:03:13 +0200
commit4c8b719d9fcb5c67b4f461961d436532cbd4c8c1 (patch)
tree4b7b1bcd11df7ea1b327bf1032f7d928ab55ff93 /src/statistics
parentd3245124b4b2918c6dbd64aa237e96d96279e48b (diff)
fix test check for TMPDIR: do not throw exception if variable does not exist
Diffstat (limited to 'src/statistics')
-rw-r--r--src/statistics/test_gnunet_statistics.py.in6
-rw-r--r--src/statistics/test_statistics_api_data.conf2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/statistics/test_gnunet_statistics.py.in b/src/statistics/test_gnunet_statistics.py.in
index 8f6966b6f0..96714cf9a8 100644
--- a/src/statistics/test_gnunet_statistics.py.in
+++ b/src/statistics/test_gnunet_statistics.py.in
@@ -8,10 +8,10 @@ import subprocess
import time
if os.name == "nt":
- tmp = os.getenv ("TEMP")
-elif os.environ["TMPDIR"]:
+ tmp = os.getenv ("TEMP")
+elif None != os.environ.get("TMPDIR"):
tmp = os.getenv("TMPDIR")
-elif os.environ["TMP"]:
+elif None != os.environ.get("TMP"):
tmp = os.getenv("TMP")
else:
tmp = "/tmp"
diff --git a/src/statistics/test_statistics_api_data.conf b/src/statistics/test_statistics_api_data.conf
index 66555291cd..9ef8d06737 100644
--- a/src/statistics/test_statistics_api_data.conf
+++ b/src/statistics/test_statistics_api_data.conf
@@ -1,5 +1,5 @@
@INLINE@ ../../contrib/no_forcestart.conf
+@INLINE@ ../../contrib/no_autostart_above_core.conf
[PATHS]
GNUNET_TEST_HOME = $GNUNET_TMP/test-gnunet-statistics/
-