Skip to content

Commit d8e13ce

Browse files
committed
The log doesn't always exist
1 parent 10ade6e commit d8e13ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/jobs/unit-tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ if [ $CODECOVERAGE -eq 1 ]; then
4444
CNT=$(sed -n '/Generating code coverage report/,$p' "$ARTIFACTS"/phpunit.out | grep -v DoctrineTestBundle | grep -cv ^$)
4545
fi
4646

47-
ls -l ${DIR}/webapp/var/log
47+
# Make sure the log exists before copy
48+
touch ${DIR}/webapp/var/log/test.log
4849
cp ${DIR}/webapp/var/log/test.log "$ARTIFACTS"/test.log
4950

5051
if [ $UNITSUCCESS -ne 0 ] || [ $CNT -gt $THRESHOLD ]; then

0 commit comments

Comments
 (0)