Browse Source

Fixing os.remove errors

Hamilton Turner 11 years ago
parent
commit
b3a17c4399
1 changed files with 4 additions and 1 deletions
  1. 4 1
      toolset/benchmark/benchmarker.py

+ 4 - 1
toolset/benchmark/benchmarker.py

@@ -546,7 +546,10 @@ class Benchmarker:
           if test_process.exitcode != 0:
           if test_process.exitcode != 0:
             error_happened = True
             error_happened = True
 
 
-    os.remove('current_benchmark.txt')
+    try:
+      os.remove('current_benchmark.txt')
+    catch OSError:
+      pass
     logging.debug("End __run_tests.")
     logging.debug("End __run_tests.")
     if error_happened:
     if error_happened:
       return 1
       return 1