run: detect QEMU panics by log parsing

Add correct error messages to kernel v4.17 gem5 boot failures
This commit is contained in:
Ciro Santilli
2018-08-10 15:03:40 +01:00
parent b585590fc0
commit 6ea0b16cd7
2 changed files with 38 additions and 14 deletions

6
run
View File

@@ -399,3 +399,9 @@ if [ -z "$debug_vm" ]; then
"
fi
"${common_root_dir}/eeval" "$cmd" "${common_run_dir}/run.sh"
if ! "$common_gem5"; then
if grep 'Kernel panic - not syncing' "$common_termout_file"; then
echo 'Kernel panic detected by parsing the terminal output. Exiting with status 1.'
exit 1
fi
fi