From 8c0e4e3e2f91bed540ee6e90321497237678d2c6 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Apr 08 2014 18:22:34 +0000 Subject: Proper return codes --- diff --git a/docker-run_tests.sh b/docker-run_tests.sh index 50a89ae..0fcb210 100755 --- a/docker-run_tests.sh +++ b/docker-run_tests.sh @@ -13,14 +13,16 @@ expect_output(){ if [ -z "$2" ] then printf "We need two args\n" - return 98 + return 2 fi $1 | grep "$2" if [ $? -eq 0 ] then printf "Test PASSED\n" + return 0 else printf "Test \'%s\' FAILED: expecting %s\n" $1 $2 + return 1 fi }