aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests/test_integration_connect_on_restart.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/integration-tests/test_integration_connect_on_restart.py.in')
-rwxr-xr-xsrc/integration-tests/test_integration_connect_on_restart.py.in16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/integration-tests/test_integration_connect_on_restart.py.in b/src/integration-tests/test_integration_connect_on_restart.py.in
index f77fd1c..0b23c8f 100755
--- a/src/integration-tests/test_integration_connect_on_restart.py.in
+++ b/src/integration-tests/test_integration_connect_on_restart.py.in
@@ -32,7 +32,6 @@ import subprocess
import re
import shutil
import time
-import pexpect
from gnunet_testing import Peer
from gnunet_testing import Test
from gnunet_testing import Check
@@ -46,16 +45,15 @@ testname = "test_integration_clique"
verbose = True
check_timeout = 180
+if os.name == "nt":
+ tmp = os.getenv ("TEMP")
+else:
+ tmp = "/tmp"
def cleanup ():
- if os.name == "nt":
- shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_bootstrap_server"), True)
- shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True)
- shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client_2"), True)
- else:
- shutil.rmtree ("/tmp/c_bootstrap_server/", True)
- shutil.rmtree ("/tmp/c_no_nat_client/", True)
- shutil.rmtree ("/tmp/c_no_nat_client_2/", True)
+ shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
+ shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
+ shutil.rmtree (os.path.join (tmp, "c_no_nat_client_2"), True)
def success_cont (check):