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