summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/runtime_test.py
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-03-31 19:29:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-01 23:11:37 +0100
commit416cce968d3abb85177287cc1e497867d0472755 (patch)
tree6e3a5dab815105c9402c22887e6b07c94ca585bc /meta/lib/oeqa/selftest/cases/runtime_test.py
parent4e5f84902e52d477e46eb83978f23416f09bbc6a (diff)
downloadpoky-416cce968d3abb85177287cc1e497867d0472755.tar.gz
oeqa/selftest: tag tests that use runqemu
There may be environments or machines which don't have working runqemu, so tag all of the tests which use runqemu() so that they can be skipped. (From OE-Core rev: 3f45ce6d2b1dfde8bc3d554397d55f81846c52d5) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/runtime_test.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/runtime_test.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 642f0eb637..7b7371b6e0 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -4,16 +4,15 @@
4 4
5from oeqa.selftest.case import OESelftestTestCase 5from oeqa.selftest.case import OESelftestTestCase
6from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars, runqemu 6from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars, runqemu
7from oeqa.utils.sshcontrol import SSHControl 7from oeqa.core.decorator import OETestTag
8import os 8import os
9import re
10import tempfile 9import tempfile
11import shutil
12import oe.lsb 10import oe.lsb
13from oeqa.core.decorator.data import skipIfNotQemu 11from oeqa.core.decorator.data import skipIfNotQemu
14 12
15class TestExport(OESelftestTestCase): 13class TestExport(OESelftestTestCase):
16 14
15 @OETestTag("runqemu")
17 def test_testexport_basic(self): 16 def test_testexport_basic(self):
18 """ 17 """
19 Summary: Check basic testexport functionality with only ping test enabled. 18 Summary: Check basic testexport functionality with only ping test enabled.
@@ -106,6 +105,7 @@ class TestExport(OESelftestTestCase):
106 self.assertEqual(0, result.status, "Couldn't run tar from SDK") 105 self.assertEqual(0, result.status, "Couldn't run tar from SDK")
107 106
108 107
108@OETestTag("runqemu")
109class TestImage(OESelftestTestCase): 109class TestImage(OESelftestTestCase):
110 110
111 def test_testimage_install(self): 111 def test_testimage_install(self):
@@ -240,6 +240,7 @@ class TestImage(OESelftestTestCase):
240 bitbake('core-image-minimal') 240 bitbake('core-image-minimal')
241 bitbake('-c testimage core-image-minimal') 241 bitbake('-c testimage core-image-minimal')
242 242
243@OETestTag("runqemu")
243class Postinst(OESelftestTestCase): 244class Postinst(OESelftestTestCase):
244 245
245 def init_manager_loop(self, init_manager): 246 def init_manager_loop(self, init_manager):
@@ -357,6 +358,7 @@ class Postinst(OESelftestTestCase):
357 self.assertFalse(os.path.isfile(os.path.join(hosttestdir, "rootfs-after-failure")), 358 self.assertFalse(os.path.isfile(os.path.join(hosttestdir, "rootfs-after-failure")),
358 "rootfs-after-failure file was created") 359 "rootfs-after-failure file was created")
359 360
361@OETestTag("runqemu")
360class SystemTap(OESelftestTestCase): 362class SystemTap(OESelftestTestCase):
361 """ 363 """
362 Summary: The purpose of this test case is to verify native crosstap 364 Summary: The purpose of this test case is to verify native crosstap
@@ -433,4 +435,3 @@ IMAGE_INSTALL:append = " systemtap-runtime"
433 cmd = "crosstap -r root@192.168.7.2 -s %s/process/ syscalls_by_pid.stp" % systemtap_examples 435 cmd = "crosstap -r root@192.168.7.2 -s %s/process/ syscalls_by_pid.stp" % systemtap_examples
434 result = runCmd(cmd) 436 result = runCmd(cmd)
435 self.assertEqual(0, result.status, 'crosstap syscalls_by_pid returned a non 0 status:%s' % result.output) 437 self.assertEqual(0, result.status, 'crosstap syscalls_by_pid returned a non 0 status:%s' % result.output)
436