Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
37
sources/poky/meta/lib/oeqa/runtime/cases/ssh.py
Normal file
37
sources/poky/meta/lib/oeqa/runtime/cases/ssh.py
Normal file
@@ -0,0 +1,37 @@
|
||||
#
|
||||
# Copyright OpenEmbedded Contributors
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
import time
|
||||
import signal
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class SSHTest(OERuntimeTestCase):
|
||||
|
||||
@OETestDepends(['ping.PingTest.test_ping'])
|
||||
@OEHasPackage(['dropbear', 'openssh-sshd'])
|
||||
def test_ssh(self):
|
||||
for i in range(5):
|
||||
status, output = self.target.run("uname -a", timeout=30)
|
||||
if status == 0:
|
||||
break
|
||||
elif status == 255 or status == -signal.SIGTERM:
|
||||
# ssh returns 255 only if a ssh error occurs. This could
|
||||
# be an issue with "Connection refused" because the port
|
||||
# isn't open yet, and this could check explicitly for that
|
||||
# here. However, let's keep it simple and just retry for
|
||||
# all errors a limited amount of times with a sleep to
|
||||
# give it time for the port to open.
|
||||
# We sometimes see -15 (SIGTERM) on slow emulation machines too, likely
|
||||
# from boot/init not being 100% complete, retry for these too.
|
||||
time.sleep(5)
|
||||
continue
|
||||
else:
|
||||
self.fail("uname failed with \"%s\" (exit code %s)" % (output, status))
|
||||
if status != 0:
|
||||
self.fail("ssh failed with \"%s\" (exit code %s)" % (output, status))
|
||||
Reference in New Issue
Block a user