diff mbox series

arm/oeqa/optee.py: only run regression tests on qemu machines

Message ID 20250908130920.98624-1-jon.mason@arm.com
State New
Headers show
Series arm/oeqa/optee.py: only run regression tests on qemu machines | expand

Commit Message

Jon Mason Sept. 8, 2025, 1:09 p.m. UTC
The OP-TEE default tests are taking over 30 minutes, which is causing CI
to overall take several hours.  For QEMU machines, reduce the tests to
just be the regression tests, which reduces the CI time by over 30%.

Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 meta-arm/lib/oeqa/runtime/cases/optee.py | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

Comments

Jon Mason Sept. 10, 2025, 1:33 p.m. UTC | #1
On Mon, 08 Sep 2025 09:09:20 -0400, Jon Mason wrote:
> The OP-TEE default tests are taking over 30 minutes, which is causing CI
> to overall take several hours.  For QEMU machines, reduce the tests to
> just be the regression tests, which reduces the CI time by over 30%.
> 
> 

Applied, thanks!

[1/1] arm/oeqa/optee.py: only run regression tests on qemu machines
      commit: 90b2ef142b3b227f8d3675b3ca8868f43e392d6d

Best regards,
diff mbox series

Patch

diff --git a/meta-arm/lib/oeqa/runtime/cases/optee.py b/meta-arm/lib/oeqa/runtime/cases/optee.py
index 077eb6a47542..20354c530ea6 100644
--- a/meta-arm/lib/oeqa/runtime/cases/optee.py
+++ b/meta-arm/lib/oeqa/runtime/cases/optee.py
@@ -7,14 +7,17 @@  import os
 from oeqa.runtime.case import OERuntimeTestCase
 from oeqa.runtime.decorator.package import OEHasPackage
 from oeqa.core.decorator.oetimeout import OETimeout
+from oeqa.core.decorator.data import skipIfQemu
+from oeqa.core.decorator.data import skipIfNotQemu
 
 class OpteeTestSuite(OERuntimeTestCase):
     """
     Run OP-TEE tests (xtest).
     """
+    @skipIfQemu()
     @OETimeout(2700)
     @OEHasPackage(['optee-test'])
-    def test_opteetest_xtest(self):
+    def test_opteetest_xtest_all(self):
         # clear storage before executing tests
         cmd = "xtest --clear-storage || true"
         status, output = self.target.run(cmd, timeout=60)
@@ -22,3 +25,15 @@  class OpteeTestSuite(OERuntimeTestCase):
         cmd = "xtest"
         status, output = self.target.run(cmd, timeout=1200)
         self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
+
+    @skipIfNotQemu()
+    @OETimeout(2700)
+    @OEHasPackage(['optee-test'])
+    def test_opteetest_xtest_regression(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]))
+        cmd = "xtest -t regression"
+        status, output = self.target.run(cmd, timeout=1200)
+        self.assertEqual(status, 0, msg='\n'.join([cmd, output]))