Merge pull request #58749 from shyamjvs/benchmark-script-fix

Automatic merge from submit-queue (batch tested with PRs 58561, 58749). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Create benchmark results file before writing to it

To see if it helps with https://github.com/kubernetes/test-infra/issues/6392#issuecomment-360127048

/cc @gmarek
This commit is contained in:
Kubernetes Submit Queue 2018-01-24 07:46:35 -08:00 committed by GitHub
commit 9fed4878ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,5 +50,6 @@ cd /go/src/k8s.io/kubernetes
./hack/install-etcd.sh
# Run the benchmark tests and pretty-print the results into a separate file.
touch ${ARTIFACTS_DIR}/BenchmarkResults.txt
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=. -benchmem" \
| tee >(prettybench -no-passthrough > ${ARTIFACTS_DIR}/BenchmarkResults.txt)