From b6bc9efc6d1ccaa3c946305b1fb5520c64af2d52 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Dec 27 2023 16:56:58 +0000 Subject: Fail test_nginx on Salt failures Signed-off-by: Georg Pfuetzenreuter --- diff --git a/bin/test_nginx.sh b/bin/test_nginx.sh index f66425c..67f60a8 100755 --- a/bin/test_nginx.sh +++ b/bin/test_nginx.sh @@ -106,7 +106,7 @@ for role in $(bin/get_roles.py); do if [ -n "$state" ] then echo "Applying $state ..." >> "$out" - salt-call --local state.apply "$state" >> "$out" + salt-call --local state.apply "$state" >> "$out" || rolestatus=1 echo >> "$out" unset state break @@ -115,7 +115,7 @@ for role in $(bin/get_roles.py); do done fi echo 'Applying nginx ...' >> "$out" - salt-call --local state.apply nginx >> "$out" + salt-call --local state.apply nginx >> "$out" || rolestatus=1 create_fake_certs touch_includes $role