diff options
author | Nils Gillmann <ng0@n0.is> | 2018-05-06 21:41:36 +0000 |
---|---|---|
committer | Nils Gillmann <ng0@n0.is> | 2018-05-06 21:41:36 +0000 |
commit | 0623c03225a8122a4338cc9b1f0483ded77df5b8 (patch) | |
tree | 6b8faa6690cfd96a421a7fbb8a912c34908acae8 /src/statistics | |
parent | 168e95c15c41f7e9029200c2b9d2e09accd42321 (diff) | |
download | gnunet-0623c03225a8122a4338cc9b1f0483ded77df5b8.tar.gz gnunet-0623c03225a8122a4338cc9b1f0483ded77df5b8.zip |
test_gnunet_statistics.py: use new locations of TMP
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/test_gnunet_statistics.py.in | 8 |
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 | ||
10 | if os.name == "nt": | 10 | if os.name == "nt": |
11 | tmp = os.getenv ("TEMP") | 11 | tmp = os.getenv ("TEMP") |
12 | elif os.environ["TMPDIR"]: | ||
13 | tmp = os.getenv("TMPDIR") | ||
14 | elif os.environ["TMP"]: | ||
15 | tmp = os.getenv("TMP") | ||
12 | else: | 16 | else: |
13 | tmp = "/tmp" | 17 | tmp = "/tmp" |
14 | 18 | ||
15 | if os.name == 'nt': | 19 | if 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 | ||
28 | def cleanup (): | 32 | def 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 | ||
31 | def sub_run (args, want_stdo = True, want_stde = False, nofail = False): | 35 | def sub_run (args, want_stdo = True, want_stde = False, nofail = False): |
32 | if want_stdo: | 36 | if want_stdo: |