From 8686e531defd5f72731bbb757040028928827a5c Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos Date: Nov 13 2018 16:01:50 +0000 Subject: Merge branch 'cboltz-test-sudo' into 'production' Make sure to test failures of all test runs See merge request infra/salt!218 --- diff --git a/bin/test_sudo.sh b/bin/test_sudo.sh index 338a364..af1345e 100755 --- a/bin/test_sudo.sh +++ b/bin/test_sudo.sh @@ -26,6 +26,7 @@ run_tests() { echo_FAILED fi echo + return $STATUS } echo_INFO "Testing virtual: physical" @@ -43,12 +44,14 @@ SUDO_ROLES=( ) popd > /dev/null +ALL_STATUS=0 + for _role in ${SUDO_ROLES[@]}; do _role=${_role##*/} role=${_role%%.*} echo_INFO "Testing role: $role" reset_sudo - run_tests + run_tests || ALL_STATUS=$? done -exit $STATUS +exit $ALL_STATUS