More verbose debug messages in summarize_json.

This commit is contained in:
pyth0n1c
2021-11-24 11:45:52 -08:00
parent ccc29005fa
commit f32f1bed2a
2 changed files with 3 additions and 7 deletions
@@ -243,13 +243,6 @@ jobs:
- name: Merge Detections into single File
run: |
cd automated_detection_testing/ci/detection_testing_batch
echo "res0"
ls
echo "res1"
ls
echo "res2"
ls results_*
python summarize_json.py --files results_*/combined.json --output_filename summary_test_results.json
@@ -58,11 +58,14 @@ args = parser.parse_args()
all_data = OrderedDict()
try:
print("We will summarize the files: %s"%(str(args.files)))
for f in args.files:
if not f.name.endswith('.json'):
print("Error: passed in file must end in .json - you passed in [%s].\n\tQuitting..."%(f.name))
sys.exit(1)
data = json.loads(f.read())
print(f.name)
print(data)
if 'baseline' in all_data:
#everything has the same baseline, only need to do it once
pass