瀏覽代碼

Nuke tmp, no really - nuke tmp

msmith-techempower 9 年之前
父節點
當前提交
ac398f182a
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      toolset/benchmark/framework_test.py

+ 1 - 2
toolset/benchmark/framework_test.py

@@ -492,8 +492,7 @@ class FrameworkTest:
         pprint(results)
 
         self.benchmarker.report_benchmark_results(framework=self, test=test_type, results=results['results'])
-        rmtmp = "find /tmp -maxdepth 1 -name \"*\" -print0 | xargs -0 sudo -u %s rm" % (self.benchmarker.runner_user)
-        subprocess.Popen(rmtmp, shell=True, cwd=self.fwroot, executable='/bin/bash')
+        subprocess.Popen('sudo rm -rf /tmp/*')
         out.write( "Complete\n" )
         out.flush()