Another CI change to list directory structure during summarize step.

This commit is contained in:
pyth0n1c
2021-11-24 09:54:27 -08:00
parent 6b292ba2c1
commit 3cd3ca6692
2 changed files with 3 additions and 2 deletions
@@ -77,7 +77,7 @@ jobs:
cd automated_detection_testing/ci/detection_testing_batch
source .venv/bin/activate
python3 detection_testing_execution.py run --branch develop --mode all --num_containers 10 --mock
python3 detection_testing_execution.py run --branch develop --mode changes --num_containers 10 --mock
- name: Upload Test Results Files
uses: actions/upload-artifact@v2
@@ -243,6 +243,7 @@ jobs:
- name: Merge Detections into single File
run: |
cd automated_detection_testing/ci/detection_testing_batch
ls -lah
python summarize_json.py --files results_*/combined.json --output_filename summary_test_results.json
@@ -40,7 +40,7 @@ def outputResultsJSON(output_filename:str, data:list[dict], baseline:OrderedDict
"FAIL_AND_ERROR":fail_and_error_count }
with open(output_filename, "w") as jsonFile:
json.dump({'summary':summary, 'baseline': baseline, 'results':data}, jsonFile, indent=" ")
json.dump({'summary':summary, 'baseline': baseline, 'results':data}, jsonFile, indent=" ")
except Exception as e:
print("There was an error generating [%s]: [%s]"%(output_filename, str(e)),file=sys.stderr)
raise(e)