Skip to content

Commit

Permalink
Merge pull request #124351 from pohly/e2e-test-verify-fix
Browse files Browse the repository at this point in the history
hack/verify-e2e-suites.sh: non-zero exit code when there were errors
  • Loading branch information
k8s-ci-robot committed Apr 23, 2024
2 parents 8dd9d1a + 0b5456c commit e6e6090
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/verify-e2e-suites.sh
Expand Up @@ -31,6 +31,7 @@ cd "${KUBE_ROOT}"

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
# Build a binary and run it in the root directory to get paths that are
# relative to that instead of the package directory.
Expand All @@ -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."
# shellcheck disable=SC2001
echo "$out" | sed -e 's/^/ /'
res=1
fi
done
exit "$res"

0 comments on commit e6e6090

Please sign in to comment.