Skip to content

Commit 877e5b1

Browse files
committed
Display error message indicating why execution of tests stopped
1 parent be8cccc commit 877e5b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_all.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,25 @@ find . -type d -mindepth 2 -path "*/dockerfiles/*" | sort --reverse | while read
88

99
bash "1_build.sh"
1010
if [[ $? -ne 0 ]]; then
11+
echo "Error: Build failed for ${directory}"
1112
exit 1
1213
fi
1314

1415
bash "2_start.sh"
1516
if [[ $? -ne 0 ]]; then
17+
echo "Error: Start failed for ${directory}"
1618
exit 1
1719
fi
1820

1921
bash "3_test.sh"
2022
if [[ $? -ne 0 ]]; then
23+
echo "Error: Test failed for ${directory}"
2124
exit 1
2225
fi
2326

2427
bash "4_stop.sh"
2528
if [[ $? -ne 0 ]]; then
29+
echo "Error: Stop failed for ${directory}"
2630
exit 1
2731
fi
2832

0 commit comments

Comments
 (0)