test/helpers: hide crictl info output
Almost every test setup calls start_crio, which calls
wait_until_reachable, which calls crictl info at least once.
Hide `crictl info` output so in case the test fails we'll have
less info to look at. Do show it in case crio failed to start.
@@ -219,13 +219,13 @@ function retry() {
local i
for ((i = 0; i < attempts; i++)); do
- if "$@"; then
+ if output=$("$@"); then
return 0
fi
sleep "$delay"
done
- echo "Command \"$*\" failed $attempts times"
+ echo "Command \"$*\" failed $attempts times; last output :: $output"
false
}
