aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests/test_integration_connection_values_tcp_udp.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/integration-tests/test_integration_connection_values_tcp_udp.py.in')
-rwxr-xr-xsrc/integration-tests/test_integration_connection_values_tcp_udp.py.in11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/integration-tests/test_integration_connection_values_tcp_udp.py.in b/src/integration-tests/test_integration_connection_values_tcp_udp.py.in
index 11b8266..cfb1043 100755
--- a/src/integration-tests/test_integration_connection_values_tcp_udp.py.in
+++ b/src/integration-tests/test_integration_connection_values_tcp_udp.py.in
@@ -30,7 +30,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
@@ -44,13 +43,13 @@ testname = "test_integration_connection_value"
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_normal_client"), True)
- else:
- shutil.rmtree ("/tmp/c_normal_client/", True)
-
+ shutil.rmtree (os.path.join (tmp, "c_normal_client"), True)
def success_cont (check):
global success