From f9e8ce83bc2b5c5a18b968c08506a33150a7f08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Sun, 23 Aug 2020 16:36:35 +0200 Subject: [PATCH] chore: regtest: if exit status != 0, log it --- regtest/common.bash | 4 ++++ 1 file changed, 4 insertions(+) mode change 100755 => 100644 regtest/common.bash diff --git a/regtest/common.bash b/regtest/common.bash old mode 100755 new mode 100644 index f1ad6d1..234cd3e --- a/regtest/common.bash +++ b/regtest/common.bash @@ -178,6 +178,10 @@ function run_regtest() echo "LANG=en_EN.UTF-8 $NEWVER --regtest --no-progress -i${testiso} ${testeccopt} ${extra_args} ${testparms}" >>$LOGFILE LANG=en_EN.UTF-8 $NEWVER --regtest --no-progress -i${testiso} ${testeccopt} ${extra_args} ${testparms} 2>&1 | tail -n +3 >>$NEWLOG + ret=${PIPESTATUS[0]} + if [ $ret != 0 ]; then + echo "NON-ZERO EXIT STATUS: $ret" >>$NEWLOG + fi if ! test -r $REFLOG; then echo -e "FAIL\n$REFLOG missing in log file database"