Skip to contentSkip to conversation

oeqa/selftest/gcc: Fix kex exchange identification error

PATCH New [email protected] 1 participant 1 message Sep 28, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oeqa/selftest/gcc: Fix kex exchange identification error

From: Harish Sadineni <[email protected]>

while runnig oe-selftest for gcc, some of the testcases that need to be run on qemu are not running due to below failures:
- kex_exchange_identification: read: Connection reset by peer^M Connection reset by 192.168.7.2 port 22^M
ERROR: Couldn't create remote directory /tmp/runtest.3549814 on ssh

To resolve kex exchange identification error increased the MaxStartups.

---
 meta/lib/oeqa/selftest/cases/gcc.py | 2 ++
 1 file changed, 2 insertions(+)
meta/lib/oeqa/selftest/cases/gcc.py +2 -0
index 4cc0894d42..1bda29a72b 100644
@@ -83,6 +83,8 @@ class GccSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
             # validate that SSH is working
             status, _ = qemu.run("uname")
             self.assertEqual(status, 0)
+            qemu.run('echo "MaxStartups 75:30:100" >> /etc/ssh/sshd_config')
+            qemu.run('service sshd restart')
 
             return self.run_check(*args, ssh=qemu.ip, **kwargs)
 
Signature · 1 line
2.43.0