Skip to content

Commit

Permalink
updating condition
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-bhavin committed Jul 2, 2024
1 parent 0911e93 commit 435ab4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 435ab4e

Please sign in to comment.