Merge pull request #1736 from mwhudson/dump-crash-files-in-ci

runtests.sh: dump crash files to stdout in CI
This commit is contained in:
Michael Hudson-Doyle 2023-07-21 12:07:49 +12:00 committed by GitHub
commit a9828edbb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -151,6 +151,13 @@ on_exit () {
else
echo 'Runtests FAILURE'
echo "Output from the last run is at $tmpdir"
if [ -n "${GITHUB_ACTIONS:-}" -a -d $tmpdir/var/crash -a -n "$(ls -A $tmpdir/var/crash)" ] ; then
for file in $tmpdir/var/crash/*.crash; do
echo "--- Start crash file $file ---"
cat $file
echo "--- End crash file $file ---"
done
fi
fi
if [ -n "$subiquity_pid" ] ; then