diff options
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 | |||