From 057d0bc250f8e361ef0874a98fcf6dab5e25a97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 20 Feb 2013 13:38:38 +0100 Subject: [PATCH] add -f switch to curl options so that it will exit with non-zero return code if request fails --- tests/travis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/travis.sh b/tests/travis.sh index b6f700b1..6ebe52fc 100755 --- a/tests/travis.sh +++ b/tests/travis.sh @@ -38,7 +38,7 @@ http_test() { if [ "$UPID" != "" ]; then echo -e "${bldgre}>>> Spawned PID $UPID, running tests${txtrst}" sleep 5 - curl -I $URL + curl -fI $URL RET=$? if [ $RET != 0 ]; then die "${bldred}>>> Error during curl run${txtrst}"