Skip to content

Commit

Permalink
test(ci): fix e2e false positive on failure of resource deletion (#667)
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Fedotov <[email protected]>
  • Loading branch information
nevermarine authored Jan 27, 2025
1 parent 885563e commit ab9df71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ tasks:
--skip-file affinity_toleration_test.go \
--no-color \
-v | tee /dev/stderr | grep --color=never -E 'FAIL!|SUCCESS!')
if [[ $RESULT == SUCCESS!* ]]; then
if [ "${PIPESTATUS[0]}" -ne "0" ]; then
RESULT_STATUS=":x: FAIL!"
EXIT_CODE=${PIPESTATUS[0]}
elif [[ $RESULT == SUCCESS!* ]]; then
RESULT_STATUS=":white_check_mark: SUCCESS!"
EXIT_CODE=0
elif [[ $RESULT == FAIL!* ]]; then
Expand Down

0 comments on commit ab9df71

Please sign in to comment.