Browse Source

Wait for test_process if we have to manually terminate it

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

+ 1 - 0
toolset/benchmark/benchmarker.py

@@ -543,6 +543,7 @@ class Benchmarker:
             logging.debug("Child process for {name} is still alive. Terminating.".format(name=test.name))
             self.__write_intermediate_results(test.name,"__run_test timeout (="+ str(self.run_test_timeout_seconds) + " seconds)")
             test_process.terminate()
+            test_process.join()
           if test_process.exitcode != 0:
             error_happened = True
     if os.path.isfile('current_benchmark.txt'):