mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-18 22:40:35 +00:00
hack/verify-featuregates.sh: print failure information to stderr
Verify scripts are run such that stderr is captured and included in the JUnit files. Stdout is not. Therefore the instructions in case of a failure where only visible by searching the entire job log file, but not in the Prow summary.
This commit is contained in:
@@ -32,7 +32,7 @@ kube::golang::setup_env
|
||||
cd "${KUBE_ROOT}"
|
||||
|
||||
if ! go run test/compatibility_lifecycle/main.go feature-gates verify; then
|
||||
echo "Please run 'hack/update-featuregates.sh' to update the feature list."
|
||||
echo >&2 "Please run 'hack/update-featuregates.sh' to update the feature list."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -44,7 +44,7 @@ trap 'rm -f "${TMPFILE}"' EXIT
|
||||
go run cmd/genfeaturegates/genfeaturegates.go -output="${TMPFILE}"
|
||||
|
||||
if ! diff -q "${FEATURE_LIST_MD}" "${TMPFILE}" > /dev/null 2>&1; then
|
||||
echo "${FEATURE_LIST_MD} is out of date."
|
||||
echo "Please run 'hack/update-featuregates.sh' to update the feature list."
|
||||
echo >&2 "${FEATURE_LIST_MD} is out of date."
|
||||
echo >&2 "Please run 'hack/update-featuregates.sh' to update the feature list."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user