Merge pull request #1815 from thockin/e2e

Better final print in e2e
This commit is contained in:
Joe Beda 2014-10-15 15:51:18 -07:00
commit 1874926a70

View File

@ -87,12 +87,15 @@ for test_file in $(ls "${KUBE_ROOT}/hack/e2e-suite/"); do
echo "${test_file} returned ${result}; passed!"
else
echo "${test_file} returned ${result}; FAIL!"
any_failed=1
any_failed=$((any_failed+1))
fi
done
if [[ ${any_failed} -ne 0 ]]; then
echo "At least one test failed."
echo
if [[ ${any_failed} -eq 0 ]]; then
echo "Final: All tests passed."
else
echo "Final: ${any_failed} tests failed."
fi
exit ${any_failed}