diff mbox series

[1/3] arm/oeqa/selftest: tag all tests with "meta-arm"

Message ID 20231013165205.1678618-1-ross.burton@arm.com
State New
Headers show
Series [1/3] arm/oeqa/selftest: tag all tests with "meta-arm" | expand

Commit Message

Ross Burton Oct. 13, 2023, 4:52 p.m. UTC
From: Ross Burton <ross.burton@arm.com>

Tag all of the tests in meta-arm so that they can be selectively ran
without needing to explicitly list them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-arm/lib/oeqa/selftest/cases/runfvp.py | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Jon Mason Oct. 17, 2023, 1:48 p.m. UTC | #1
On Fri, 13 Oct 2023 17:52:03 +0100, ross.burton@arm.com wrote:
> Tag all of the tests in meta-arm so that they can be selectively ran
> without needing to explicitly list them.
> 
> 

Applied, thanks!

[1/3] arm/oeqa/selftest: tag all tests with "meta-arm"
      commit: cadb42a66c8879fa30db84156e94d10cf1ea63e0
[2/3] CI: don't hardcode the selftest tests to run
      commit: 19d2d8a484d55805704aad1b76cfc36ad4bc9032
[3/3] CI: also run the _qemutiny testcase for poky-tiny
      commit: ebe4d2437ce56fce42821170c1557440cf0aa617

Best regards,
diff mbox series

Patch

diff --git a/meta-arm/lib/oeqa/selftest/cases/runfvp.py b/meta-arm/lib/oeqa/selftest/cases/runfvp.py
index d60aa3c4..61ce2ab9 100644
--- a/meta-arm/lib/oeqa/selftest/cases/runfvp.py
+++ b/meta-arm/lib/oeqa/selftest/cases/runfvp.py
@@ -7,10 +7,12 @@  import tempfile
 import unittest.mock
 
 from oeqa.selftest.case import OESelftestTestCase
+from oeqa.core.decorator import OETestTag
 
 runfvp = pathlib.Path(__file__).parents[5] / "scripts" / "runfvp"
 testdir = pathlib.Path(__file__).parent / "tests"
 
+@OETestTag("meta-arm")
 class RunFVPTests(OESelftestTestCase):
     def setUpLocal(self):
         self.assertTrue(runfvp.exists())
@@ -51,6 +53,7 @@  class RunFVPTests(OESelftestTestCase):
         # test-parameter sets one argument, add another manually
         self.run_fvp(testdir / "test-parameter.json", "--", "--parameter", "board.dog=woof")
 
+@OETestTag("meta-arm")
 class ConfFileTests(OESelftestTestCase):
     def test_no_exe(self):
         from fvp import conffile
@@ -80,6 +83,7 @@  class ConfFileTests(OESelftestTestCase):
             self.assertTrue("env" in conf)
 
 
+@OETestTag("meta-arm")
 class RunnerTests(OESelftestTestCase):
     def create_mock(self):
         return unittest.mock.patch("subprocess.Popen")