diff options
Diffstat (limited to 'lib')
l--------- | lib/oeqa/selftest/cases/qemucommand.py | 1 | ||||
-rw-r--r-- | lib/oeqa/selftest/cases/updater.py (renamed from lib/oeqa/selftest/updater.py) | 18 | ||||
l--------- | lib/oeqa/selftest/qemucommand.py | 1 |
3 files changed, 11 insertions, 9 deletions
diff --git a/lib/oeqa/selftest/cases/qemucommand.py b/lib/oeqa/selftest/cases/qemucommand.py new file mode 120000 index 0000000..075cdb8 --- /dev/null +++ b/lib/oeqa/selftest/cases/qemucommand.py | |||
@@ -0,0 +1 @@ | |||
../../../../scripts/qemucommand.py \ No newline at end of file | |||
diff --git a/lib/oeqa/selftest/updater.py b/lib/oeqa/selftest/cases/updater.py index f28349f..7d7bde7 100644 --- a/lib/oeqa/selftest/updater.py +++ b/lib/oeqa/selftest/cases/updater.py | |||
@@ -1,15 +1,15 @@ | |||
1 | import unittest | ||
2 | import os | 1 | import os |
3 | import logging | 2 | import logging |
4 | import subprocess | 3 | import subprocess |
5 | import time | 4 | import time |
5 | import unittest | ||
6 | 6 | ||
7 | from oeqa.selftest.base import oeSelfTest | 7 | from oeqa.selftest.case import OESelftestTestCase |
8 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars | 8 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars |
9 | from oeqa.selftest.qemucommand import QemuCommand | 9 | from qemucommand import QemuCommand |
10 | 10 | ||
11 | 11 | ||
12 | class SotaToolsTests(oeSelfTest): | 12 | class SotaToolsTests(OESelftestTestCase): |
13 | 13 | ||
14 | @classmethod | 14 | @classmethod |
15 | def setUpClass(cls): | 15 | def setUpClass(cls): |
@@ -38,14 +38,15 @@ class SotaToolsTests(oeSelfTest): | |||
38 | result = runCmd('%s --help' % p, ignore_status=True) | 38 | result = runCmd('%s --help' % p, ignore_status=True) |
39 | self.assertEqual(result.status, 0, "Status not equal to 0. output: %s" % result.output) | 39 | self.assertEqual(result.status, 0, "Status not equal to 0. output: %s" % result.output) |
40 | 40 | ||
41 | class HsmTests(oeSelfTest): | 41 | |
42 | class HsmTests(OESelftestTestCase): | ||
42 | 43 | ||
43 | def test_hsm(self): | 44 | def test_hsm(self): |
44 | self.write_config('SOTA_CLIENT_FEATURES="hsm"') | 45 | self.write_config('SOTA_CLIENT_FEATURES="hsm"') |
45 | bitbake('core-image-minimal') | 46 | bitbake('core-image-minimal') |
46 | 47 | ||
47 | 48 | ||
48 | class GeneralTests(oeSelfTest): | 49 | class GeneralTests(OESelftestTestCase): |
49 | 50 | ||
50 | def test_feature_sota(self): | 51 | def test_feature_sota(self): |
51 | result = get_bb_var('DISTRO_FEATURES').find('sota') | 52 | result = get_bb_var('DISTRO_FEATURES').find('sota') |
@@ -104,7 +105,7 @@ class GeneralTests(oeSelfTest): | |||
104 | self.assertNotEqual(size1, size2, "Image sizes are identical; image was not rebuilt.") | 105 | self.assertNotEqual(size1, size2, "Image sizes are identical; image was not rebuilt.") |
105 | 106 | ||
106 | 107 | ||
107 | class QemuTests(oeSelfTest): | 108 | class QemuTests(OESelftestTestCase): |
108 | 109 | ||
109 | @classmethod | 110 | @classmethod |
110 | def setUpClass(cls): | 111 | def setUpClass(cls): |
@@ -133,7 +134,8 @@ class QemuTests(oeSelfTest): | |||
133 | self.assertEqual(err, b'', 'Error: ' + err.decode()) | 134 | self.assertEqual(err, b'', 'Error: ' + err.decode()) |
134 | print(value.decode()) | 135 | print(value.decode()) |
135 | 136 | ||
136 | class GrubTests(oeSelfTest): | 137 | |
138 | class GrubTests(OESelftestTestCase): | ||
137 | 139 | ||
138 | def setUpLocal(self): | 140 | def setUpLocal(self): |
139 | # This is a bit of a hack but I can't see a better option. | 141 | # This is a bit of a hack but I can't see a better option. |
diff --git a/lib/oeqa/selftest/qemucommand.py b/lib/oeqa/selftest/qemucommand.py deleted file mode 120000 index bc06dde..0000000 --- a/lib/oeqa/selftest/qemucommand.py +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | ../../../scripts/qemucommand.py \ No newline at end of file | ||