Browse Source

Nuke tmp, no really - nuke tmp

msmith-techempower 8 years ago
parent
commit
ac398f182a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      toolset/benchmark/framework_test.py

+ 1 - 2
toolset/benchmark/framework_test.py

@@ -492,8 +492,7 @@ class FrameworkTest:
         pprint(results)
         pprint(results)
 
 
         self.benchmarker.report_benchmark_results(framework=self, test=test_type, results=results['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.write( "Complete\n" )
         out.flush()
         out.flush()