Discard large metadata items first
[oweals/gnunet.git] / src / integration-tests / test_integration_bootstrap_and_connect.py.in
index 0b29b460defa60081997337c450bae83841a48f6..cd3bdbef86f8dc06981f8b7e2e77608a7d9b9d83 100755 (executable)
@@ -51,14 +51,14 @@ testname = "test_integration_bootstrap_and_connect"
 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"), "gnunet-test-fs-py-ns"), True)
-           shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True)
-       else:
-           shutil.rmtree ("/tmp/c_bootstrap_server/", True)
-           shutil.rmtree ("/tmp/c_no_nat_client/", True)    
+    shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
+    shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
 
 def success_cont (check):
     global success