Example #1
0
File: buck.py Project: haches/infer
 def capture_with_flavors(self):
     ret = self._run_buck_with_flavors()
     if not ret == os.EX_OK:
         return ret
     result_files = self._get_analysis_result_files()
     all_results = utils.merge_json_arrays_from_files(result_files)
     merged_results_path = os.path.join(self.args.infer_out,
                                        config.JSON_REPORT_FILENAME)
     with open(merged_results_path, 'w') as file_out:
         json.dump(all_results, file_out, indent=2)
     print('Results saved in {results_path}'.format(
         results_path=merged_results_path))
     return os.EX_OK