Merge pull request #85915 from ingvagabund/jenkins-benchmark-dockerized-allow-to-override-bench-prefix

scheduler benchmark: allow to override bench prefix
This commit is contained in:
Kubernetes Prow Robot 2019-12-04 13:29:19 -08:00 committed by GitHub
commit 8f7f2ddced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ set -o xtrace
retry() {
for i in {1..5}; do
if "$@"
then
then
return 0
else
sleep "${i}"
@ -59,7 +59,7 @@ cd "${GOPATH}/src/k8s.io/kubernetes"
./hack/install-etcd.sh
# Run the benchmark tests and pretty-print the results into a separate file.
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=. -benchmem -alsologtostderr=false -logtostderr=false" \
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=${TEST_PREFIX:-.} -benchmem -alsologtostderr=false -logtostderr=false" \
| (go run test/integration/benchmark/extractlog/main.go) \
| tee \
>(prettybench -no-passthrough > "${ARTIFACTS}/BenchmarkResults.txt") \