From 0623c03225a8122a4338cc9b1f0483ded77df5b8 Mon Sep 17 00:00:00 2001 From: Nils Gillmann Date: Sun, 6 May 2018 21:41:36 +0000 Subject: test_gnunet_statistics.py: use new locations of TMP Signed-off-by: Nils Gillmann --- src/statistics/test_gnunet_statistics.py.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/statistics') diff --git a/src/statistics/test_gnunet_statistics.py.in b/src/statistics/test_gnunet_statistics.py.in index 86d0258f4..8f6966b6f 100644 --- a/src/statistics/test_gnunet_statistics.py.in +++ b/src/statistics/test_gnunet_statistics.py.in @@ -9,8 +9,12 @@ import time if os.name == "nt": tmp = os.getenv ("TEMP") +elif os.environ["TMPDIR"]: + tmp = os.getenv("TMPDIR") +elif os.environ["TMP"]: + tmp = os.getenv("TMP") else: - tmp = "/tmp" + tmp = "/tmp" if os.name == 'nt': st = './gnunet-statistics.exe' @@ -26,7 +30,7 @@ if debug: run_arm += [debug.split (' ')] def cleanup (): - shutil.rmtree (os.path.join (tmp, "test-gnunet-statistics"), True) + shutil.rmtree (os.path.join (tmp, "gnunet/test-gnunet-statistics"), True) def sub_run (args, want_stdo = True, want_stde = False, nofail = False): if want_stdo: -- cgit v1.2.3