mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-28 10:06:21 +00:00
ci: Only print log file if we find it
This commit is contained in:
@@ -3,8 +3,12 @@
|
|||||||
log_content()
|
log_content()
|
||||||
{
|
{
|
||||||
echo
|
echo
|
||||||
echo "Content of $1:"
|
if [ -f "$1" ]; then
|
||||||
cat "$1"
|
echo "Content of $1:"
|
||||||
|
cat "$1"
|
||||||
|
else
|
||||||
|
echo "Log file $1 not found."
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
error_handler()
|
error_handler()
|
||||||
|
|||||||
@@ -9,10 +9,12 @@ error_handler()
|
|||||||
echo
|
echo
|
||||||
echo "Error ${ERR_CODE} with command '${BASH_COMMAND}' on line ${BASH_LINENO[0]}. Exiting."
|
echo "Error ${ERR_CODE} with command '${BASH_COMMAND}' on line ${BASH_LINENO[0]}. Exiting."
|
||||||
# Meson logs are stored in the build directory
|
# Meson logs are stored in the build directory
|
||||||
if [ -f "build/meson-logs/testlog.txt" ]; then
|
for log in build_run/meson-logs/testlog.txt build_valgrind/meson-logs/testlog.txt; do
|
||||||
echo "--- Meson Test Log ---"
|
if [ -f "$log" ]; then
|
||||||
cat build/meson-logs/testlog.txt
|
echo "--- Meson Test Log ($log) ---"
|
||||||
fi
|
cat "$log"
|
||||||
|
fi
|
||||||
|
done
|
||||||
exit ${ERR_CODE}
|
exit ${ERR_CODE}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user