Skip to content

Commit

Permalink
summary: reset the 'ok' variable
Browse files Browse the repository at this point in the history
Otherwise, when an issue is found, all the next ones will be marked as
'not ok'.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Mar 28, 2024
1 parent 16e939d commit e8a65bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1307,10 +1307,10 @@ _has_failed_tests() {
}

# $1: prefix
_print_tests_results_subtests() { local tap ok="ok"
_print_tests_results_subtests() { local tap ok
for tap in "${RESULTS_DIR}/${1}"*.tap; do
[[ "${tap}" = *"_*.tap" ]] && continue
grep -q "^not ok " "${tap}" && ok="not ok"
grep -q "^not ok " "${tap}" && ok="not ok" || ok="ok"
echo "${ok} 1 test: $(basename "${tap}" ".tap")"
done
}
Expand Down

0 comments on commit e8a65bd

Please sign in to comment.