Commit fd991cb9 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Improve sonobuoy status output handling

parent 97a606ba
......@@ -171,12 +171,12 @@ export -f dump-logs
# ---
retrieve-sonobuoy-logs() {
sonobuoy status || true
local status=passed
local code=0
local testStatus=$(sonobuoy status 2>&1)
cat <<< $testStatus
if ! sonobuoy status | grep -q -E ' +e2e +complete +passed +'; then
if ! grep -q -E '\s+e2e\s+complete\s+passed\s+' <<< $testStatus; then
status=failed
code=1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment