aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-05-06 21:41:36 +0000
committerNils Gillmann <ng0@n0.is>2018-05-06 21:41:36 +0000
commit0623c03225a8122a4338cc9b1f0483ded77df5b8 (patch)
tree6b8faa6690cfd96a421a7fbb8a912c34908acae8
parent168e95c15c41f7e9029200c2b9d2e09accd42321 (diff)
downloadgnunet-0623c03225a8122a4338cc9b1f0483ded77df5b8.tar.gz
gnunet-0623c03225a8122a4338cc9b1f0483ded77df5b8.zip
test_gnunet_statistics.py: use new locations of TMP
Signed-off-by: Nils Gillmann <ng0@n0.is>
-rw-r--r--src/statistics/test_gnunet_statistics.py.in8
1 files changed, 6 insertions, 2 deletions
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
9 9
10if os.name == "nt": 10if os.name == "nt":
11 tmp = os.getenv ("TEMP") 11 tmp = os.getenv ("TEMP")
12elif os.environ["TMPDIR"]:
13 tmp = os.getenv("TMPDIR")
14elif os.environ["TMP"]:
15 tmp = os.getenv("TMP")
12else: 16else:
13 tmp = "/tmp" 17 tmp = "/tmp"
14 18
15if os.name == 'nt': 19if os.name == 'nt':
16 st = './gnunet-statistics.exe' 20 st = './gnunet-statistics.exe'
@@ -26,7 +30,7 @@ if debug:
26 run_arm += [debug.split (' ')] 30 run_arm += [debug.split (' ')]
27 31
28def cleanup (): 32def cleanup ():
29 shutil.rmtree (os.path.join (tmp, "test-gnunet-statistics"), True) 33 shutil.rmtree (os.path.join (tmp, "gnunet/test-gnunet-statistics"), True)
30 34
31def sub_run (args, want_stdo = True, want_stde = False, nofail = False): 35def sub_run (args, want_stdo = True, want_stde = False, nofail = False):
32 if want_stdo: 36 if want_stdo: