mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-12 12:36:55 +00:00
extract printing tests and add main invocation to tests where I failed to add it
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user