blob: baa68dc6ffcb8020461de84f89f5b1ee13290194 [file] [log] [blame]
Andrew Geissler5082cc72023-09-11 08:41:39 -04001From 554f7baed050f89ffc2a7192d3071e8c5420f6d3 Mon Sep 17 00:00:00 2001
2From: Mikko Rapeli <mikko.rapeli@linaro.org>
3Date: Fri, 25 Aug 2023 10:35:28 +0000
4Subject: [PATCH] openssh regress/Makefile: print logs if test fails
5
6Some tests are failing in CI runs and reproduction has failed. Print
7the captured sshd and ssh client logs if test fails. This should
8help to fix the root causes.
9
10Reference: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15178
11
12Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
13---
14 regress/Makefile | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17Upstream-Status: Submitted [https://github.com/openssh/openssh-portable/pull/437]
18
19diff --git a/regress/Makefile b/regress/Makefile
20index d80bf59..a972dff 100644
21--- a/regress/Makefile
22+++ b/regress/Makefile
23@@ -229,7 +229,7 @@ t-exec: ${LTESTS:=.sh}
24 done; \
25 if [ "x$${skip}" = "xno" ]; then \
26 echo "run test $${TEST}" ... 1>&2; \
27- (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} ${TEST_SHELL} ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \
28+ (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} ${TEST_SHELL} ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || (echo return value: $$?; echo capturing logs; cat *.log; exit 1); \
29 else \
30 echo skip test $${TEST} 1>&2; \
31 fi; \
32--
332.34.1
34