Merge pull request #76448 from xichengliudui/fixshellcheckfailures-20

update benchmark-dockerized.sh and verify-dockerized.sh
k3s-v1.15.3
Kubernetes Prow Robot 2019-04-13 14:02:01 -07:00 committed by GitHub
commit 92918dc285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -57,4 +57,4 @@ cd /go/src/k8s.io/kubernetes
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=. -benchmem" \
| tee \
>(prettybench -no-passthrough > "${ARTIFACTS}/BenchmarkResults.txt") \
>(go run test/integration/benchmark/jsonify/main.go "${ARTIFACTS}"/BenchmarkResults_benchmark_"$(date -u +%Y-%m-%dT%H:%M:%SZ)".json || cat > /dev/null)
>(go run test/integration/benchmark/jsonify/main.go "${ARTIFACTS}/BenchmarkResults_benchmark_$(date -u +%Y-%m-%dT%H:%M:%SZ).json" || cat > /dev/null)

View File

@ -21,8 +21,7 @@ set -o xtrace
retry() {
for i in {1..5}; do
if "$@"
then
if "$@"; then
return 0
else
sleep "${i}"