summaryrefslogtreecommitdiffstats
path: root/.github/run_test.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-08-07 07:37:37 +0200
committerDarren Tucker <dtucker@dtucker.net>2020-08-07 07:37:37 +0200
commita09e98dcae1e26f026029b7142b0e0d10130056f (patch)
treed87a7f0a57457ff6dd0e8824048934b3984e2f63 /.github/run_test.sh
parentAdd ability to specify exact test target. (diff)
downloadopenssh-a09e98dcae1e26f026029b7142b0e0d10130056f.tar.xz
openssh-a09e98dcae1e26f026029b7142b0e0d10130056f.zip
Output test debug logs on failure.
Diffstat (limited to '.github/run_test.sh')
-rwxr-xr-x.github/run_test.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/run_test.sh b/.github/run_test.sh
index f8a97f51f..93c3a5e9e 100755
--- a/.github/run_test.sh
+++ b/.github/run_test.sh
@@ -18,6 +18,17 @@ done
if [ -z "$LTESTS" ]; then
make $TEST_TARGET
+ result=$?
else
make $TEST_TARGET LTESTS="$LTESTS"
+ result=$?
+fi
+
+if [ "$result" -ne "0" ]; then
+ for i in regress/failed*; do
+ echo -------------------------------------------------------------------------
+ echo LOGFILE $i
+ cat $i
+ echo -------------------------------------------------------------------------
+ done
fi