Skip to content

Commit b23ee2b

Browse files
committed
Docker testing entrypoint updated.
1 parent 603e5c4 commit b23ee2b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/testing-entrypoint.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ if [ -f "${TESTS_OUTPUT}/coverage.xml" ] && [[ "$COVERAGE" == "1" ]]; then
8383
fi
8484

8585
# Set public test result files permissions.
86-
echo 'Setting output permissions'.
87-
chmod 777 -R "$TESTS_OUTPUT"/*
86+
if [ -n "$(ls "$TESTS_OUTPUT")" ]; then
87+
echo 'Setting result files permissions'.
88+
chmod 777 -R "$TESTS_OUTPUT"/*
89+
fi
90+
8891

8992
# Check results and exit accordingly.
9093
if [ -f "${TESTS_OUTPUT}/failed" ]; then

0 commit comments

Comments
 (0)