소스 검색

Merge pull request #2330 from ashawnbandy-te-tfb/45216-continuousbencharmking-genmetadatacorrection-20161104-8

45216: correct generation of metadata
Nate 8 년 전
부모
커밋
62035a2caa
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      toolset/benchmark/benchmarker.py

+ 4 - 4
toolset/benchmark/benchmarker.py

@@ -57,7 +57,7 @@ class Benchmarker:
   ############################################################
   ############################################################
   # Prints the metadata for all the available tests
   # Prints the metadata for all the available tests
   ############################################################
   ############################################################
-  def run_list_test_metadata(self):
+  def run_list_test_metadata(self, run_finish=True):
     all_tests = self.__gather_tests
     all_tests = self.__gather_tests
     all_tests_json = json.dumps(map(lambda test: {
     all_tests_json = json.dumps(map(lambda test: {
       "name": test.name,
       "name": test.name,
@@ -78,8 +78,8 @@ class Benchmarker:
 
 
     with open(os.path.join(self.full_results_directory(), "test_metadata.json"), "w") as f:
     with open(os.path.join(self.full_results_directory(), "test_metadata.json"), "w") as f:
       f.write(all_tests_json)
       f.write(all_tests_json)
-
-    self.__finish()
+    if run_finish:
+      self.__finish()
 
 
 
 
   ############################################################
   ############################################################
@@ -115,7 +115,7 @@ class Benchmarker:
     ##########################
     ##########################
     # Generate metadata
     # Generate metadata
     ##########################
     ##########################
-    self.run_list_test_metadata()
+    self.run_list_test_metadata(false)
     ##########################
     ##########################
     # Get a list of all known
     # Get a list of all known
     # tests that we can run.
     # tests that we can run.