diff options
author | Ross Burton <ross@burtonini.com> | 2022-03-31 19:29:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-01 23:11:37 +0100 |
commit | 416cce968d3abb85177287cc1e497867d0472755 (patch) | |
tree | 6e3a5dab815105c9402c22887e6b07c94ca585bc /meta/lib/oeqa/selftest/cases/runtime_test.py | |
parent | 4e5f84902e52d477e46eb83978f23416f09bbc6a (diff) | |
download | poky-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.py | 9 |
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 | ||
5 | from oeqa.selftest.case import OESelftestTestCase | 5 | from oeqa.selftest.case import OESelftestTestCase |
6 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars, runqemu | 6 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars, runqemu |
7 | from oeqa.utils.sshcontrol import SSHControl | 7 | from oeqa.core.decorator import OETestTag |
8 | import os | 8 | import os |
9 | import re | ||
10 | import tempfile | 9 | import tempfile |
11 | import shutil | ||
12 | import oe.lsb | 10 | import oe.lsb |
13 | from oeqa.core.decorator.data import skipIfNotQemu | 11 | from oeqa.core.decorator.data import skipIfNotQemu |
14 | 12 | ||
15 | class TestExport(OESelftestTestCase): | 13 | class 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") | ||
109 | class TestImage(OESelftestTestCase): | 109 | class 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") | ||
243 | class Postinst(OESelftestTestCase): | 244 | class 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") | ||
360 | class SystemTap(OESelftestTestCase): | 362 | class 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 | |||