mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
hack/verify-e2e-suites.sh: non-zero exit code when there were errors
The script correctly reported errors, but did not return a non-zero exit code. Therefore errors would have been overlooked during pull-kubernetes-verify runs.
This commit is contained in:
parent
79c61d5f03
commit
0b5456c13b
@ -31,6 +31,7 @@ cd "${KUBE_ROOT}"
|
|||||||
|
|
||||||
kube::util::ensure-temp-dir
|
kube::util::ensure-temp-dir
|
||||||
|
|
||||||
|
res=0
|
||||||
for suite in $(git grep -l framework.AfterReadingAllFlags | grep -v -e ^test/e2e/framework -e ^hack | xargs -n 1 dirname | sort -u); do
|
for suite in $(git grep -l framework.AfterReadingAllFlags | grep -v -e ^test/e2e/framework -e ^hack | xargs -n 1 dirname | sort -u); do
|
||||||
# Build a binary and run it in the root directory to get paths that are
|
# Build a binary and run it in the root directory to get paths that are
|
||||||
# relative to that instead of the package directory.
|
# relative to that instead of the package directory.
|
||||||
@ -41,5 +42,7 @@ for suite in $(git grep -l framework.AfterReadingAllFlags | grep -v -e ^test/e2e
|
|||||||
echo >&2 "ERROR: E2E test suite invocation failed for $suite."
|
echo >&2 "ERROR: E2E test suite invocation failed for $suite."
|
||||||
# shellcheck disable=SC2001
|
# shellcheck disable=SC2001
|
||||||
echo "$out" | sed -e 's/^/ /'
|
echo "$out" | sed -e 's/^/ /'
|
||||||
|
res=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
exit "$res"
|
||||||
|
Loading…
Reference in New Issue
Block a user