Browse Source

Merge pull request #2070 from cjnething/issue-1562-loc-count-missing-from-results-json-jn

Write commit counts and sloc counts to latest results.json file
Nate 9 years ago
parent
commit
12c85dabbf
1 changed files with 4 additions and 1 deletions
  1. 4 1
      toolset/benchmark/benchmarker.py

+ 4 - 1
toolset/benchmark/benchmarker.py

@@ -757,7 +757,7 @@ class Benchmarker:
   def __parse_results(self, tests):
     # Run the method to get the commmit count of each framework.
     self.__count_commits()
-   # Call the method which counts the sloc for each framework
+    # Call the method which counts the sloc for each framework
     self.__count_sloc()
 
     # Time to create parsed files
@@ -765,6 +765,9 @@ class Benchmarker:
     with open(os.path.join(self.full_results_directory(), "results.json"), "w") as f:
       f.write(json.dumps(self.results, indent=2))
 
+    with open(os.path.join(self.latest_results_directory, "results.json"), "w") as latest:
+      latest.write(json.dumps(self.results, indent=2))
+
   ############################################################
   # End __parse_results
   ############################################################