Skip to content

Commit 92d0e02

Browse files
committed
The log doesn't always exist
1 parent 6a21940 commit 92d0e02

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
@@ -52,7 +52,8 @@ else
5252
STATE=failure
5353
fi
5454

55-
ls -l ${DIR}/webapp/var/log
55+
# Make sure the log exists before copy
56+
touch ${DIR}/webapp/var/log/test.log
5657
cp ${DIR}/webapp/var/log/test.log "$ARTIFACTS"/test.log
5758

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

0 commit comments

Comments
 (0)