msmith-techempower il y a 8 ans
Parent
commit
496531ffe9
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      toolset/benchmark/benchmarker.py

+ 5 - 1
toolset/benchmark/benchmarker.py

@@ -609,8 +609,12 @@ class Benchmarker:
         except OSError:
           pass
         passed_verify = test.verify_urls(verificationPath)
+
+        ##########################
+        # Nuke /tmp
+        ##########################
         try:
-          subprocess.check_call('sudo rm -rf /tmp/*')
+          subprocess.check_call('sudo rm -rf /tmp/*', shell=True, stderr=out, stdout=out)
         except Exception:
           out.write(header("Error: Could not empty /tmp"))