Improve sonobuoy status output handling

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/2862/head
Brad Davidson 4 years ago committed by Brad Davidson
parent 97a606bac1
commit fd991cb964

@ -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

Loading…
Cancel
Save