runtests.sh: dump crash files to stdout in CI

This commit is contained in:
Michael Hudson-Doyle 2023-07-21 11:37:36 +12:00
parent 5a4686fd01
commit cab3f072cd
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