extract printing tests and add main invocation to tests where I failed to add it

This commit is contained in:
Nikola Jokic
2023-12-04 14:51:38 +01:00
parent 445ef94796
commit c4cee5a195
9 changed files with 174 additions and 57 deletions

View File

@@ -62,14 +62,7 @@ function main() {
delete_cluster
if [[ "${#failed[@]}" -ne 0 ]]; then
echo "----------------------------------"
echo "The following tests failed:"
for test in "${failed[@]}"; do
echo " - ${test}"
done
return 1
fi
print_results "${failed[@]}"
}
main