aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linaro.org>2018-06-11 18:34:26 -0500
committerAníbal Limón <anibal.limon@linaro.org>2018-06-19 10:02:05 -0500
commit2641a4d0e78f4c0d1ad28937a11e3aed29a7a062 (patch)
tree1bad17e9c25a93357378f092978b94399257d8b0
parent05778c2db5d9d3e006cd379a90839d782f055ef9 (diff)
automated/linux/24h-stress-test: Follow redirect on curl
When try to download the default stress network URL the checksum fails because is stored on a storage service with redirects. The next gives you an HTML web page with the redirect, $ curl -O http://testdata.linaro.org//stress/stress-network.img In order to fix add -L option to follow HTTP redirects and download the file. Change-Id: Ibad43d4fc54a37cdf3b4df744c23e95dca6af953 Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
-rwxr-xr-xautomated/linux/24h-stress-test/24h-stress-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/linux/24h-stress-test/24h-stress-test.sh b/automated/linux/24h-stress-test/24h-stress-test.sh
index 5f6e12b0..00ef2905 100755
--- a/automated/linux/24h-stress-test/24h-stress-test.sh
+++ b/automated/linux/24h-stress-test/24h-stress-test.sh
@@ -205,7 +205,7 @@ stress_network()
# File download test.
test -e stress-network.img && rm -rf stress-network.img
- curl -O --interface "$ip" "$LINK"
+ curl -OL --interface "$ip" "$LINK"
check_return "file-download-$iteration"
local_md5=$(md5sum stress-network.img | awk '{print $1}')
test "$local_md5" = "$MD5"