From c461b66b59c79bce8bb8a68310720e1bfe99daaa Mon Sep 17 00:00:00 2001 From: Blaise Tine Date: Sat, 24 Jul 2021 10:20:05 -0700 Subject: [PATCH] fix debug log gathering on failure --- ci/blackbox.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ci/blackbox.sh b/ci/blackbox.sh index 27b5f671..be5ce2a4 100755 --- a/ci/blackbox.sh +++ b/ci/blackbox.sh @@ -1,8 +1,5 @@ #!/bin/sh -# exit when any command fails -set -e - show_usage() { echo "Vortex BlackBox Test Driver v1.0" @@ -137,6 +134,8 @@ echo "CONFIGS=$CONFIGS" make -C $DRIVER_PATH $CLEAN_TOKEN +status=0 + if [ $DEBUG -eq 1 ] then if [ $SCOPE -eq 1 ] @@ -149,8 +148,10 @@ then if [ $HAS_ARGS -eq 1 ] then OPTS=$ARGS make -C $APP_PATH run-$DRIVER > run.log 2>&1 + status=$? else make -C $APP_PATH run-$DRIVER > run.log 2>&1 + status=$? fi if [ -f "$APP_PATH/trace.vcd" ] @@ -168,7 +169,11 @@ else if [ $HAS_ARGS -eq 1 ] then OPTS=$ARGS make -C $APP_PATH run-$DRIVER + status=$? else make -C $APP_PATH run-$DRIVER + status=$? fi -fi \ No newline at end of file +fi + +exit $status \ No newline at end of file