From: Ian Jackson Date: Thu, 8 Jul 2021 18:26:22 +0000 (+0100) Subject: jstest: run1: show whole console log output on failures X-Git-Tag: otter-0.7.2~231 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f700e9408c347ff5d6e69de2043020ffa67bba3e;p=otter.git jstest: run1: show whole console log output on failures Signed-off-by: Ian Jackson --- diff --git a/jstest/run1 b/jstest/run1 index 7f7e91a2..b8463b5b 100755 --- a/jstest/run1 +++ b/jstest/run1 @@ -31,6 +31,14 @@ sed >&3 &3 $t.nodejs exec 3>&- +set +e nodejs run.js >output +rc=$? +set -e + +if [ $rc != 0 ]; then + egrep '' /dev/null output ||: +fi diff -u expect output +exit $rc