From ee121bddf1b3759ef9dc80f3968787b26a54bbde Mon Sep 17 00:00:00 2001 From: Marko Atanasievski Date: Tue, 12 Dec 2023 15:15:52 +0100 Subject: [PATCH] fix: exit on error --- tests/network.sh | 2 +- tests/test_cert_production.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/network.sh b/tests/network.sh index f7fb65b..5acf2a8 100755 --- a/tests/network.sh +++ b/tests/network.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e start_network () { echo "Starting local infra network..." @@ -63,4 +64,3 @@ elif [ $1 = 'is_running' ]; then else echo "Invalid argument" exit 1 -fi diff --git a/tests/test_cert_production.sh b/tests/test_cert_production.sh index 00e64ab..c60741a 100755 --- a/tests/test_cert_production.sh +++ b/tests/test_cert_production.sh @@ -1,4 +1,6 @@ #!/bin/bash +set -e + function get_last_block () { local last_block=`docker compose logs $1 | grep -e 'polygon.blockchain' | grep -e 'new block' | \