diff --git a/tests/performance/scripts/download.sh b/tests/performance/scripts/download.sh index cb243b655c6b..7a740a38fd2b 100755 --- a/tests/performance/scripts/download.sh +++ b/tests/performance/scripts/download.sh @@ -67,8 +67,8 @@ function download mkdir ~/fg ||: ( cd ~/fg - wget -nv -nd -c "https://raw.githubusercontent.com/brendangregg/FlameGraph/master/flamegraph.pl" - wget -nv -nd -c "https://raw.githubusercontent.com/brendangregg/FlameGraph/master/difffolded.pl" + wget -nv -nd -c "https://raw.githubusercontent.com/brendangregg/FlameGraph/cd9ee4c4449775a2f867acf31c84b7fe4b132ad5/flamegraph.pl" + wget -nv -nd -c "https://raw.githubusercontent.com/brendangregg/FlameGraph/cd9ee4c4449775a2f867acf31c84b7fe4b132ad5/difffolded.pl" chmod +x ~/fg/difffolded.pl chmod +x ~/fg/flamegraph.pl ) & diff --git a/tests/performance/scripts/entrypoint.sh b/tests/performance/scripts/entrypoint.sh index 95ffe44b6549..ec7e4d96dde4 100755 --- a/tests/performance/scripts/entrypoint.sh +++ b/tests/performance/scripts/entrypoint.sh @@ -14,7 +14,8 @@ SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" function curl_with_retry { for _ in 1 2 3 4 5 6 7 8 9 10; do - if curl --fail --head "$1";then + if curl --fail --head "$1" + then return 0 else sleep 1