Display error message indicating why execution of tests stopped

This commit is contained in:
Zach Borboa
2020-05-17 21:04:54 -07:00
parent be8cccc292
commit 877e5b1275
+4
View File
@@ -8,21 +8,25 @@ find . -type d -mindepth 2 -path "*/dockerfiles/*" | sort --reverse | while read
bash "1_build.sh"
if [[ $? -ne 0 ]]; then
echo "Error: Build failed for ${directory}"
exit 1
fi
bash "2_start.sh"
if [[ $? -ne 0 ]]; then
echo "Error: Start failed for ${directory}"
exit 1
fi
bash "3_test.sh"
if [[ $? -ne 0 ]]; then
echo "Error: Test failed for ${directory}"
exit 1
fi
bash "4_stop.sh"
if [[ $? -ne 0 ]]; then
echo "Error: Stop failed for ${directory}"
exit 1
fi