diff --git a/bin/test_show_highstate.sh b/bin/test_show_highstate.sh index f43a36e..0f5edcd 100755 --- a/bin/test_show_highstate.sh +++ b/bin/test_show_highstate.sh @@ -31,7 +31,9 @@ write_grains() { for os in ${ALL_OS[@]}; do for location in ${ALL_LOCATIONS[@]}; do write_grains ${location//,/ } ${os//,/ } - if $($RUN_TEST > /dev/null); then + $RUN_TEST > /dev/null + _STATUS=$(echo $?) + if [[ $_STATUS -eq 0 ]] || [[ $_STATUS -eq 2 ]]; then echo 'PASSED' else STATUS=1