From: Harish Sadineni Date: Fri, 22 Aug 2025 07:12:27 +0000 (-0700) Subject: gcc-testsuite: Fix test failures with output pattern due to ssh warning. X-Git-Tag: uninative-5.0~475 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08200d7ac9d96996dbc1f913bcc0c8bee13592f8;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git gcc-testsuite: Fix test failures with output pattern due to ssh warning. when running oe-selftest for gcc some of the output pattern matchng test cases were getting failed due to below issue. Output line 1 was: Warning: Permanently added '192.168.7 Should match (from /poky/poky/build-st/tmp/work-shared/gcc-15.1.0-r0/sources/ gcc-15.1.0/gcc/testsuite/gcc.dg/dg-output-file-1-lp64.txt): This is a test output for lp64 target Failed test for output line 1 This is a test output for lp64 target Signed-off-by: Harish Sadineni Signed-off-by: Mathieu Dubois-Briand --- diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc b/meta/recipes-devtools/gcc/gcc-testsuite.inc index 3257f86907..4859d6d84c 100644 --- a/meta/recipes-devtools/gcc/gcc-testsuite.inc +++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc @@ -87,8 +87,8 @@ python check_prepare() { content.append("set_board_info username {0}".format(d.getVar("TOOLCHAIN_TEST_HOST_USER"))) port = d.getVar("TOOLCHAIN_TEST_HOST_PORT") - content.append("set_board_info rsh_prog \"/usr/bin/ssh -p {0} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\"".format(port)) - content.append("set_board_info rcp_prog \"/usr/bin/scp -P {0} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\"".format(port)) + content.append("set_board_info rsh_prog \"/usr/bin/ssh -p {0} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR \"".format(port)) + content.append("set_board_info rcp_prog \"/usr/bin/scp -P {0} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR \"".format(port)) return "\n".join(content)