Skip to content

Commit

Permalink
Merge branch 'latest' into net
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Mar 22, 2024
2 parents cc1911b + e972627 commit c8efd81
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1307,18 +1307,17 @@ _has_failed_tests() {
}

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

_print_tests_result() {
echo "All tests:"
grep --no-filename -e "^ok 1 test: " -e "^not ok " "${RESULTS_DIR}"/*.tap
grep --no-filename -e "^ok [0-9]\+ test: " -e "^not ok " "${RESULTS_DIR}"/*.tap
_print_tests_results_subtests "kunit_"
_print_tests_results_subtests "packetdrill_"
}
Expand Down

0 comments on commit c8efd81

Please sign in to comment.