Skip to content

Commit dd7199e

Browse files
committed
Add intructions for debugging
1 parent d4d1138 commit dd7199e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

entrypoint.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,29 @@ xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
1313
-quit \
1414
-returnlicense
1515

16+
# Catch exit code
17+
UNITY_EXIT_CODE=$?
18+
19+
#
20+
# Instructions for debugging
21+
#
22+
23+
if [[ $UNITY_EXIT_CODE -gt 0 ]]; then
24+
echo ""
25+
echo "###########################"
26+
echo "# Failure #"
27+
echo "###########################"
28+
echo ""
29+
echo "Please note that the exit code is not very descriptive."
30+
echo "Most likely it will not help you solve the issue."
31+
echo ""
32+
echo "To find the reason for failure: please search for errors in the log above."
33+
echo ""
34+
exit $UNITY_EXIT_CODE
35+
fi;
36+
37+
#
38+
# Exit with code from the return-license step.
39+
#
40+
41+
exit $UNITY_EXIT_CODE

0 commit comments

Comments
 (0)