mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
remove redundant bits from test-dockerized.sh
This commit is contained in:
parent
4ee729ce5f
commit
68d8bcb64f
@ -19,17 +19,6 @@ set -o nounset
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
retry() {
|
|
||||||
for i in {1..5}; do
|
|
||||||
if "$@"; then
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
sleep "${i}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
"$@"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Runs the unit and integration tests, producing JUnit-style XML test
|
# Runs the unit and integration tests, producing JUnit-style XML test
|
||||||
# reports in ${WORKSPACE}/artifacts. This script is intended to be run from
|
# reports in ${WORKSPACE}/artifacts. This script is intended to be run from
|
||||||
# kubekins-test container with a kubernetes repo mapped in. See
|
# kubekins-test container with a kubernetes repo mapped in. See
|
||||||
@ -47,14 +36,10 @@ pushd "./hack/tools" >/dev/null
|
|||||||
GO111MODULE=on go install gotest.tools/gotestsum
|
GO111MODULE=on go install gotest.tools/gotestsum
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
|
||||||
# Enable the Go race detector.
|
|
||||||
export KUBE_RACE=-race
|
|
||||||
# Disable coverage report
|
# Disable coverage report
|
||||||
export KUBE_COVER="n"
|
export KUBE_COVER="n"
|
||||||
# Set artifacts directory
|
# Set artifacts directory
|
||||||
export ARTIFACTS=${ARTIFACTS:-"${WORKSPACE}/artifacts"}
|
export ARTIFACTS=${ARTIFACTS:-"${WORKSPACE}/artifacts"}
|
||||||
# Produce a JUnit-style XML test report
|
|
||||||
export KUBE_JUNIT_REPORT_DIR="${ARTIFACTS}"
|
|
||||||
# Save the verbose stdout as well.
|
# Save the verbose stdout as well.
|
||||||
export KUBE_KEEP_VERBOSE_TEST_OUTPUT=y
|
export KUBE_KEEP_VERBOSE_TEST_OUTPUT=y
|
||||||
export KUBE_INTEGRATION_TEST_MAX_CONCURRENCY=4
|
export KUBE_INTEGRATION_TEST_MAX_CONCURRENCY=4
|
||||||
|
Loading…
Reference in New Issue
Block a user