run: dont check for panic if executable failed

This commit is contained in:
Ciro Santilli
2018-08-14 13:40:53 +01:00
parent d879ddc14f
commit 59b6062b29

4
run
View File

@@ -382,6 +382,9 @@ if [ -z "$debug_vm" ]; then
fi fi
"${common_root_dir}/eeval" "$cmd" "${common_run_dir}/run.sh" "${common_root_dir}/eeval" "$cmd" "${common_run_dir}/run.sh"
cmd_out=$? cmd_out=$?
if [ "$cmd_out" -ne 0 ]; then
exit "$cmd_out"
fi
# Check if guest panicked. # Check if guest panicked.
if "$common_gem5"; then if "$common_gem5"; then
@@ -396,4 +399,3 @@ if grep -E -e "$panic_msg" -q "$common_termout_file"; then
echo 'Simulation error detected by parsing logs. Exiting with status 1.' echo 'Simulation error detected by parsing logs. Exiting with status 1.'
exit 1 exit 1
fi fi
exit "$cmd_out"