mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
More verbose debug messages in summarize_json.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user