Commit 3a63541c authored by Mikko Rapeli's avatar Mikko Rapeli
Browse files

Merge branch 'track-master-29-04-2024' into 'main'

yocto update related changes

See merge request !212

/assign_reviewer @mikko.rapeli
parents d2d8ee3d 6667ec3a
Loading
Loading
Loading
Loading
Loading
+0 −31
Original line number Diff line number Diff line
#
# SPDX-License-Identifier: MIT
#

import os

from oeqa.runtime.case import OERuntimeTestCase
from oeqa.runtime.decorator.package import OEHasPackage
from oeqa.core.decorator.oetimeout import OETimeout

class OpteeTestSuite(OERuntimeTestCase):
    """
    Run OP-TEE tests (xtest).
    """
    @OETimeout(800)
    @OEHasPackage(['optee-test'])
    def test_opteetest_xtest(self):
        # clear storage before executing tests
        cmd = " xtest --clear-storage || true "
        status, output = self.target.run(cmd, timeout=60)
        self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
        # these tests seem to trigger a hang in qemu machine when tests
        # run under oeqa runtime test framework
        cmd = " xtest \
                    -x regression_6020 \
                    -x regression_8101 \
                    -x pkcs11_1009 \
                    -x regression_1040 \
              "
        status, output = self.target.run(cmd, timeout=600)
        self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
+1 −2
Original line number Diff line number Diff line
@@ -65,7 +65,6 @@ IMAGE_INSTALL += "\
    linux-firmware-rtl8192cu \
    linux-firmware-sd8887 \
    linux-firmware-sd8997 \
    ltp \
    net-tools \
    opensc \
    optee-test \
@@ -190,7 +189,7 @@ TEST_SUITES = "\
    ping \
    ssh \
    tpm \
    opteetest \
    optee \
    date \
    df \
    dtc \