diff --git a/vhdbuilder/packer/test/linux-vhd-content-test.sh b/vhdbuilder/packer/test/linux-vhd-content-test.sh index bd0bee75eb3..041c822e488 100644 --- a/vhdbuilder/packer/test/linux-vhd-content-test.sh +++ b/vhdbuilder/packer/test/linux-vhd-content-test.sh @@ -867,13 +867,12 @@ testBccTools () { fi done if [ $result -eq 0 ]; then - exit 0 + return 0 else - exit 1 + return 1 fi } - # As we call these tests, we need to bear in mind how the test results are processed by the # the caller in run-tests.sh. That code uses az vm run-command invoke to run this script # on a VM. It then looks at stderr to see if any errors were reported. Notably it doesn't