summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorHarish Sadineni <Harish.Sadineni@windriver.com>2024-08-08 07:50:40 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-08-13 09:29:15 +0100
commit3ec0177e2d4bcaef33cd5cecaa39f6e9234fdf79 (patch)
treede13d6c7c5b0aa803080f474cc66a52244906cd9 /meta
parent4485677cdb9df8e78b33f9260df4cdd1045b21d3 (diff)
downloadpoky-3ec0177e2d4bcaef33cd5cecaa39f6e9234fdf79.tar.gz
oeqa/selftest/gcc: Fix host key verfication failure
while runnig oe-selftest for gcc, testcases that need to be run on qemu are not running due to below failures. - Executing on ssh: mkdir -p /tmp/runtest.3549641 (timeout = 300) spawn [open ...] Host key verification failed. ERROR: Couldn't create remote directory /tmp/runtest.3549641 on ssh Host key verification failure is happening when ssh board config file name is defined as "ssh.exp" and there are multiple ssh.exp files generated during the build and a wrong ssh config was taken. To resolve this changed the board config file name to "linux-ssh.exp" which ensures correct ssh settings are used. (From OE-Core rev: d32ec0b4d242879ab8eaf96e1cb407e8f0bb9f3d) Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/cases/gcc.py2
-rw-r--r--meta/recipes-devtools/gcc/gcc-testsuite.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/gcc.py b/meta/lib/oeqa/selftest/cases/gcc.py
index 89360178fe..4cc0894d42 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -37,7 +37,7 @@ class GccSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
37 features = [] 37 features = []
38 features.append('MAKE_CHECK_TARGETS = "{0}"'.format(" ".join(targets))) 38 features.append('MAKE_CHECK_TARGETS = "{0}"'.format(" ".join(targets)))
39 if ssh is not None: 39 if ssh is not None:
40 features.append('TOOLCHAIN_TEST_TARGET = "ssh"') 40 features.append('TOOLCHAIN_TEST_TARGET = "linux-ssh"')
41 features.append('TOOLCHAIN_TEST_HOST = "{0}"'.format(ssh)) 41 features.append('TOOLCHAIN_TEST_HOST = "{0}"'.format(ssh))
42 features.append('TOOLCHAIN_TEST_HOST_USER = "root"') 42 features.append('TOOLCHAIN_TEST_HOST_USER = "root"')
43 features.append('TOOLCHAIN_TEST_HOST_PORT = "22"') 43 features.append('TOOLCHAIN_TEST_HOST_PORT = "22"')
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc b/meta/recipes-devtools/gcc/gcc-testsuite.inc
index f16d471478..0a950b6c9e 100644
--- a/meta/recipes-devtools/gcc/gcc-testsuite.inc
+++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc
@@ -101,7 +101,7 @@ python check_prepare() {
101 f.write(generate_qemu_linux_user_config(d)) 101 f.write(generate_qemu_linux_user_config(d))
102 102
103 # write out target ssh board config 103 # write out target ssh board config
104 with open(os.path.join(dejagnudir, "ssh.exp"), "w") as f: 104 with open(os.path.join(dejagnudir, "linux-ssh.exp"), "w") as f:
105 f.write(generate_remote_ssh_linux_config(d)) 105 f.write(generate_remote_ssh_linux_config(d))
106 106
107 # generate site.exp to provide boards 107 # generate site.exp to provide boards