Browse Source

Minor bug fixes

Alex Schneider 11 years ago
parent
commit
0afc5cdb94
2 changed files with 3 additions and 2 deletions
  1. 2 1
      toolset/benchmark/benchmarker.py
  2. 1 1
      toolset/benchmark/framework_test.py

+ 2 - 1
toolset/benchmark/benchmarker.py

@@ -540,7 +540,8 @@ 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()
-    os.remove('current_benchmark.txt')
+    if os.path.isfile('current_benchmark.txt'):
+      os.remove('current_benchmark.txt')
     logging.debug("End __run_tests.")
 
   ############################################################

+ 1 - 1
toolset/benchmark/framework_test.py

@@ -208,7 +208,7 @@ class FrameworkTest:
       # This will error out of the value could not parsed to a
       # float (this will work with ints, but it will turn them
       # into their float equivalent; i.e. "123" => 123.0)
-     id_ret_val = True
+      id_ret_val = True
       try:
         if not isinstance(float(obj["id"]), float):
           id_ret_val=False