Skip to content

Commit 1d2d1a4

Browse files
author
Alex J Lennon
committed
CI: fix find command so do_testimage logs are printed on failure
1 parent c93d574 commit 1d2d1a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/CI_github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ jobs:
199199
if ! bitbake test-image-qs -c testimage; then
200200
echo "ERROR: bitbake test-image-qs -c testimage failed; dumping log.do_testimage*"
201201
# Print the relevant do_testimage logs directly into the Actions log for debugging
202-
find "${WORKDIR}/build/tmp/work" -path "*/test-image-qs/*/temp/log.do_testimage*" -type f -maxdepth 10 2>/dev/null | sort || true
203-
for f in $(find "${WORKDIR}/build/tmp/work" -path "*/test-image-qs/*/temp/log.do_testimage*" -type f -maxdepth 10 2>/dev/null | sort); do
202+
find "${WORKDIR}/build/tmp/work" -maxdepth 10 -type f -path "*/test-image-qs/*/temp/log.do_testimage*" 2>/dev/null | sort || true
203+
for f in $(find "${WORKDIR}/build/tmp/work" -maxdepth 10 -type f -path "*/test-image-qs/*/temp/log.do_testimage*" 2>/dev/null | sort); do
204204
echo "----- BEGIN ${f} -----"
205205
tail -n 400 "${f}" || true
206206
echo "----- END ${f} -----"

0 commit comments

Comments
 (0)