diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2023-09-06 17:29:09 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-07 07:53:51 +0100 |
commit | eab2b3f6b6a876b7e115328414fbefd5ab6f9068 (patch) | |
tree | fa4704e1f1586421c77591e1ea79a9b298c5f56d /meta/recipes-connectivity/openssh/openssh | |
parent | de3f6ad173de0da566bbcb4bbe014c443ea9f14e (diff) | |
download | poky-eab2b3f6b6a876b7e115328414fbefd5ab6f9068.tar.gz |
openssh: capture ptest regression test failure logs
When tests fail, capture the sshd and ssh client logs from
the failing test run. These are needed to investigate
the root cause.
Reference: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15178
(From OE-Core rev: 7c6a0ee7961dc976dddbfd1615f90c2306970626)
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssh/openssh')
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh/0001-openssh-regress-Makefile-print-logs-if-test-fails.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/0001-openssh-regress-Makefile-print-logs-if-test-fails.patch b/meta/recipes-connectivity/openssh/openssh/0001-openssh-regress-Makefile-print-logs-if-test-fails.patch new file mode 100644 index 0000000000..baa68dc6ff --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/0001-openssh-regress-Makefile-print-logs-if-test-fails.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 554f7baed050f89ffc2a7192d3071e8c5420f6d3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mikko Rapeli <mikko.rapeli@linaro.org> | ||
3 | Date: Fri, 25 Aug 2023 10:35:28 +0000 | ||
4 | Subject: [PATCH] openssh regress/Makefile: print logs if test fails | ||
5 | |||
6 | Some tests are failing in CI runs and reproduction has failed. Print | ||
7 | the captured sshd and ssh client logs if test fails. This should | ||
8 | help to fix the root causes. | ||
9 | |||
10 | Reference: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15178 | ||
11 | |||
12 | Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> | ||
13 | --- | ||
14 | regress/Makefile | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | Upstream-Status: Submitted [https://github.com/openssh/openssh-portable/pull/437] | ||
18 | |||
19 | diff --git a/regress/Makefile b/regress/Makefile | ||
20 | index 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 | -- | ||
33 | 2.34.1 | ||
34 | |||