chore: regtest: if exit status != 0, log it

This commit is contained in:
Stéphane Lesimple
2020-08-23 16:36:35 +02:00
parent 4ba33a2c89
commit f9e8ce83bc

4
regtest/common.bash Executable file → Normal file
View File

@@ -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"