소스 검색

remove tmp files created by test_runner as well (#2299)

A Shawn Bandy 9 년 전
부모
커밋
0e0a8d89e0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      toolset/benchmark/framework_test.py

+ 2 - 0
toolset/benchmark/framework_test.py

@@ -492,6 +492,8 @@ 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);
         out.write( "Complete\n" )
         out.flush()