From 6bdf7e2e4789ee728d9cfaa73026ef1ec49481b4 Mon Sep 17 00:00:00 2001 From: Roger Luethi Date: Sat, 28 Mar 2015 09:30:14 +0100 Subject: [PATCH] labs: fix HTTP_EXCEPTIONS check If HTTP_EXCEPTIONS is not 0, it is a string. In that case, the comparison "-ne 0" results in an error and the script aborts. Use string comparison instead. Change-Id: I2e9311e6e0577b213281eaa7b0227ca51d59368d --- labs/scripts/test/launch_instance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/scripts/test/launch_instance.sh b/labs/scripts/test/launch_instance.sh index b76dc423..c7ab0722 100755 --- a/labs/scripts/test/launch_instance.sh +++ b/labs/scripts/test/launch_instance.sh @@ -593,7 +593,7 @@ while [ : ]; do fi done -if [ "${HTTP_EXCEPTIONS:-0}" -ne 0 ]; then +if [ "${HTTP_EXCEPTIONS:-0}" != "0" ]; then echo "SUM ERROR HTTP exceptions: ${HTTP_EXCEPTIONS:-0}" fi