From 435ab4eb2e3ee4d0e2177110997b715eaf32b586 Mon Sep 17 00:00:00 2001 From: Bhavin Patel Date: Tue, 2 Jul 2024 15:18:18 -0700 Subject: [PATCH] updating condition --- .github/workflows/unit-testing.yml | 2 +- summary.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit-testing.yml b/.github/workflows/unit-testing.yml index 450af175a3..a2fc3e9749 100644 --- a/.github/workflows/unit-testing.yml +++ b/.github/workflows/unit-testing.yml @@ -98,7 +98,7 @@ jobs: echo -e "Name | Status | Test Type" echo -e "---- | ------ | ---------" # Loop through each item in tested_detections and print required fields with color - yq e '.tested_detections[] | .name as $name | .success as $status | .tests[].test_type as $test_type | "\($name) | \($status) | \($test_type)"' summary.yml | while read line; do + yq e '.tested_detections[] | .name as $name | .status as $status | .tests[].test_type as $test_type | "\($name) | \($status) | \($test_type)"' summary.yml | while read line; do name=$(echo $line | cut -d '|' -f 1) status=$(echo $line | cut -d '|' -f 2 | xargs) test_type=$(echo $line | cut -d '|' -f 3) diff --git a/summary.yml b/summary.yml index b0ebff21d6..7ef3d34ceb 100644 --- a/summary.yml +++ b/summary.yml @@ -197,7 +197,7 @@ tested_detections: success: true message: TEST PASSED exception: null - status: pass + status: FAIL duration: 6.18 wait_duration: null resultCount: '1'