From 3788bc0d8811c0d7ebb83ffa00d1b94f8607b84a Mon Sep 17 00:00:00 2001 From: d-we <31281970+d-we@users.noreply.github.com> Date: Sun, 25 Apr 2021 15:52:44 +0200 Subject: [PATCH] propagate return value through runscript --- nanoBench.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nanoBench.sh b/nanoBench.sh index b2a1362..c8be5a7 100755 --- a/nanoBench.sh +++ b/nanoBench.sh @@ -65,8 +65,10 @@ echo 0 > /proc/sys/kernel/nmi_watchdog if [ "$debug" = true ]; then gdb -ex=run --args user/nanoBench $@ + return_value=$? else user/nanoBench $@ + return_value=$? fi rm -f asm-*.bin @@ -85,3 +87,4 @@ fi if [[ $iTCO_vendor_support_prev_loaded != 0 ]]; then modprobe iTCO_vendor_support &>/dev/null fi +exit $return_value