From b92ad5f93cc74c5d1cd3a181e4ba1ac6d9a50abe Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Fri, 2 Oct 2026 16:28:54 -0300 Subject: [PATCH] fix(xcat-core): xdsh_o expects the OpenSSH banner before the debug prefix xdsh_o fails on Ubuntu 26.04 and passes everywhere else. OpenSSH 10 prints its version banner as "debug1: OpenSSH_10.2p1 ...", so the banner is no longer the first text after the node name and the check for ": OpenSSH" stops matching. The option reached ssh and the verbose output arrived. Match the banner itself. The case keeps its check for ": debug", which is what holds the node prefix down, and the banner appears only when -v reaches ssh. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> (cherry picked from commit 7b7b33772880112c5118583c146493d57479996f) --- xCAT-test/autotest/testcase/xdsh/cases0 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-test/autotest/testcase/xdsh/cases0 b/xCAT-test/autotest/testcase/xdsh/cases0 index a0c4b933e9..cb84deaa1a 100644 --- a/xCAT-test/autotest/testcase/xdsh/cases0 +++ b/xCAT-test/autotest/testcase/xdsh/cases0 @@ -128,9 +128,11 @@ end start:xdsh_o label:cn_os_ready,parallel_cmds +#OpenSSH 10 prints its version banner behind a "debug1:" prefix, so the banner is no longer +#the first text after the node name. Match the banner itself; the next check keeps the prefix. cmd:xdsh $$CN -o "-v" date check:rc==0 -check:output=~$$CN: OpenSSH +check:output=~OpenSSH_[0-9] check:output=~$$CN: debug end