Skip to content

Commit

Permalink
Tests - Stop repeating the logs three times (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and k8s-ci-robot committed Nov 22, 2018
1 parent 486d43d commit b298fdc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ then
gsutil cp -r "${TEST_RESULTS_GCS_DIR}"/* "${ARTIFACT_DIR}" || true
fi

ARGO_WORKFLOW_DETAILS=`argo get ${ARGO_WORKFLOW}`
ARGO_WORKFLOW_LOGS=`argo logs -w ${ARGO_WORKFLOW}`

if [[ $WORKFLOW_STATUS = *"${WORKFLOW_FAILED_KEYWORD}"* ]]; then
printf "The argo workflow failed.\n =========Argo Workflow=========\n${ARGO_WORKFLOW_DETAILS}\n==================\n"
printf "=========Argo Workflow Logs=========\n${ARGO_WORKFLOW_LOGS}\n==================\n"
echo "Test workflow failed."
echo "=========Argo Workflow Logs========="
argo logs -w ${ARGO_WORKFLOW}
echo "===================================="
argo get ${ARGO_WORKFLOW}
exit 1
else
printf ${ARGO_WORKFLOW_DETAILS}
argo get ${ARGO_WORKFLOW}
exit 0
fi

0 comments on commit b298fdc

Please sign in to comment.