Procházet zdrojové kódy

Fixing os.remove errors

Hamilton Turner před 11 roky
rodič
revize
b3a17c4399
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      toolset/benchmark/benchmarker.py

+ 4 - 1
toolset/benchmark/benchmarker.py

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