From d523213f0eb657526f480dfe15bca6745709e716 Mon Sep 17 00:00:00 2001 From: Andrea Bianco Date: Mon, 29 Aug 2016 12:03:36 +0200 Subject: [PATCH] feature: -f option in curl, does not give output if status is not 200 --- test_server/test_generic.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_server/test_generic.sh b/test_server/test_generic.sh index ef1b57c4..e215d67c 100644 --- a/test_server/test_generic.sh +++ b/test_server/test_generic.sh @@ -53,10 +53,10 @@ IMAGE_EXTENTION=$4 echo "http://localhost:1024/test_server/Leaves8.tif/full/full/0/default.$IMAGE_EXTENTION" -curl -sS -o "$FILENAME_DOWN_8" -O "http://localhost:1024/test_server/Leaves8.tif/full/full/0/default.$IMAGE_EXTENTION" +curl -sSf -o "$FILENAME_DOWN_8" -O "http://localhost:1024/test_server/Leaves8.tif/full/full/0/default.$IMAGE_EXTENTION" test_check $1 $FILENAME_DOWN_8 -curl -sS -o "$FILENAME_DOWN_16" -O "http://localhost:1024/test_server/Leaves16.tif/full/full/0/default.$IMAGE_EXTENTION" +curl -sSf -o "$FILENAME_DOWN_16" -O "http://localhost:1024/test_server/Leaves16.tif/full/full/0/default.$IMAGE_EXTENTION" test_check $1 $FILENAME_DOWN_16