diff --git a/pkg/framework/test/ci/pipeline.yml b/pkg/framework/test/ci/pipeline.yml index f9320fe6..6332d727 100644 --- a/pkg/framework/test/ci/pipeline.yml +++ b/pkg/framework/test/ci/pipeline.yml @@ -28,7 +28,7 @@ jobs: export PATH="${PATH}:${GOPATH}/bin" go get github.com/onsi/ginkgo/ginkgo "${GOPATH}/src/k8s.io/kubectl/pkg/framework/test/scripts/download-binaries.sh" - "${GOPATH}/src/k8s.io/kubectl/pkg/framework/test/scripts/run-tests.sh" + GINKGO_PERFORMANCE=1 "${GOPATH}/src/k8s.io/kubectl/pkg/framework/test/scripts/run-tests.sh" - name: push-to-prod-branch serial: true plan: diff --git a/pkg/framework/test/scripts/run-tests.sh b/pkg/framework/test/scripts/run-tests.sh index fc9c21f7..75bedead 100755 --- a/pkg/framework/test/scripts/run-tests.sh +++ b/pkg/framework/test/scripts/run-tests.sh @@ -4,11 +4,18 @@ set -eu # Use DEBUG=1 ./scripts/run-tests.sh to get debug output [[ -z "${DEBUG:-""}" ]] || set -x -ginkgo_args='' -[[ -z "${GINKGO_WATCH:-""}" ]] || ginkgo_args="${ginkgo_args} watch" +declare -a ginkgo_args + +if [[ -n "${GINKGO_WATCH:-""}" ]] ; then + ginkgo_args=( "${ginkgo_args[@]}" "watch" ) +fi + +if [[ -z ${GINKGO_PERFORMANCE:-""} ]] ; then + ginkgo_args=( "${ginkgo_args[@]}" "-skipMeasurements" ) +fi test_framework_dir="$(cd "$(dirname "$0")/.." ; pwd)" export KUBE_ASSETS_DIR="${test_framework_dir}/assets/bin" -ginkgo $ginkgo_args -r "${test_framework_dir}" +ginkgo "${ginkgo_args[@]}" -r "${test_framework_dir}"