From 11c23ea0a9f96d1f0e26024822afba28754ad4f9 Mon Sep 17 00:00:00 2001 From: Lucas <31957045+SketchingDev@users.noreply.github.com> Date: Thu, 20 Jul 2023 22:29:04 +0100 Subject: [PATCH] Deliberately fail --- examples/cli/run.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/cli/run.sh b/examples/cli/run.sh index e0a2d3f..e0e6d1d 100755 --- a/examples/cli/run.sh +++ b/examples/cli/run.sh @@ -14,17 +14,15 @@ trap cleanup EXIT web-messaging-tester example-pass.yml -id $DEPLOYMENT_ID -r $REGION -p 10 if [ $? -ne 0 ] then - echo "" - echo "${RED}Passing test did not result in Exit Code of 0. Exit code was $?${NO_COLOUR}" + echo "\n\n${RED}Passing test did not result in Exit Code of 0. Exit code was $?${NO_COLOUR}" exit 1 fi ## Failing test exists with code 1 web-messaging-tester example-fail.yml -id $DEPLOYMENT_ID -r $REGION -p 10 -if [ $? -ne 1 ] +if [ $? -ne 0 ] then - echo "" - echo "${RED}Failing test did not result in Exit Code of 1. Exit code was $?${NO_COLOUR}" + echo "\n\n${RED}Failing test did not result in Exit Code of 1. Exit code was $?${NO_COLOUR}" exit 1 fi