소스 검색

Catch more errors during the benchmarking process (#3633)

Nate 7 년 전
부모
커밋
5a6250f527
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      toolset/benchmark/benchmarker.py

+ 2 - 2
toolset/benchmark/benchmarker.py

@@ -212,11 +212,11 @@ class Benchmarker:
                     file=benchmark_log,
                     file=benchmark_log,
                     color=Fore.RED)
                     color=Fore.RED)
                 return False
                 return False
-        except (OSError, IOError, subprocess.CalledProcessError) as e:
+        except Exception as e:
             tb = traceback.format_exc()
             tb = traceback.format_exc()
             self.results.write_intermediate(test.name,
             self.results.write_intermediate(test.name,
                                             "error during test: " + str(e))
                                             "error during test: " + str(e))
-            log("Subprocess Error %s" % test.name,
+            log("Error during test: %s" % test.name,
                 file=benchmark_log,
                 file=benchmark_log,
                 border='-',
                 border='-',
                 color=Fore.RED)
                 color=Fore.RED)