summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
l---------lib/oeqa/selftest/cases/qemucommand.py1
-rw-r--r--lib/oeqa/selftest/cases/updater.py (renamed from lib/oeqa/selftest/updater.py)18
l---------lib/oeqa/selftest/qemucommand.py1
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 @@
1import unittest
2import os 1import os
3import logging 2import logging
4import subprocess 3import subprocess
5import time 4import time
5import unittest
6 6
7from oeqa.selftest.base import oeSelfTest 7from oeqa.selftest.case import OESelftestTestCase
8from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars 8from oeqa.utils.commands import runCmd, bitbake, get_bb_var, get_bb_vars
9from oeqa.selftest.qemucommand import QemuCommand 9from qemucommand import QemuCommand
10 10
11 11
12class SotaToolsTests(oeSelfTest): 12class 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
41class HsmTests(oeSelfTest): 41
42class 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
48class GeneralTests(oeSelfTest): 49class 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
107class QemuTests(oeSelfTest): 108class 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
136class GrubTests(oeSelfTest): 137
138class 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