summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcajun-rat <phil@advancedtelematic.com>2018-01-19 11:35:49 +0100
committerGitHub <noreply@github.com>2018-01-19 11:35:49 +0100
commitfd82d80f664b1b20e201d49c620ec954d1d30b3c (patch)
tree8119de7aaabf3b345d07a1b157d326b6b63afd8d
parent599717033068a1f33e965a48d56d2339b71af0c0 (diff)
parent44a4dd8e039ea16319f337c3881964759ada73a5 (diff)
downloadmeta-updater-fd82d80f664b1b20e201d49c620ec954d1d30b3c.tar.gz
Merge pull request #233 from advancedtelematic/bugfix/PRO-4252/rocko-selftest-fixes
Fix some basic oe-selftest errors.
-rw-r--r--lib/oeqa/selftest/cases/updater.py4
-rw-r--r--scripts/qemucommand.py4
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/oeqa/selftest/cases/updater.py b/lib/oeqa/selftest/cases/updater.py
index 7d7bde7..253320d 100644
--- a/lib/oeqa/selftest/cases/updater.py
+++ b/lib/oeqa/selftest/cases/updater.py
@@ -13,6 +13,7 @@ class SotaToolsTests(OESelftestTestCase):
13 13
14 @classmethod 14 @classmethod
15 def setUpClass(cls): 15 def setUpClass(cls):
16 super(SotaToolsTests, cls).setUpClass()
16 logger = logging.getLogger("selftest") 17 logger = logging.getLogger("selftest")
17 logger.info('Running bitbake to build aktualizr-native tools') 18 logger.info('Running bitbake to build aktualizr-native tools')
18 bitbake('aktualizr-native') 19 bitbake('aktualizr-native')
@@ -109,6 +110,7 @@ class QemuTests(OESelftestTestCase):
109 110
110 @classmethod 111 @classmethod
111 def setUpClass(cls): 112 def setUpClass(cls):
113 super(QemuTests, cls).setUpClass()
112 cls.qemu, cls.s = qemu_launch(machine='qemux86-64') 114 cls.qemu, cls.s = qemu_launch(machine='qemux86-64')
113 115
114 @classmethod 116 @classmethod
@@ -140,7 +142,7 @@ class GrubTests(OESelftestTestCase):
140 def setUpLocal(self): 142 def setUpLocal(self):
141 # This is a bit of a hack but I can't see a better option. 143 # This is a bit of a hack but I can't see a better option.
142 path = os.path.abspath(os.path.dirname(__file__)) 144 path = os.path.abspath(os.path.dirname(__file__))
143 metadir = path + "/../../../../" 145 metadir = path + "/../../../../../"
144 grub_config = 'OSTREE_BOOTLOADER = "grub"\nMACHINE = "intel-corei7-64"' 146 grub_config = 'OSTREE_BOOTLOADER = "grub"\nMACHINE = "intel-corei7-64"'
145 self.append_config(grub_config) 147 self.append_config(grub_config)
146 self.meta_intel = metadir + "meta-intel" 148 self.meta_intel = metadir + "meta-intel"
diff --git a/scripts/qemucommand.py b/scripts/qemucommand.py
index 9a893d8..6b1106d 100644
--- a/scripts/qemucommand.py
+++ b/scripts/qemucommand.py
@@ -73,7 +73,7 @@ class QemuCommand(object):
73 try: 73 try:
74 check_output(['kvm-ok']) 74 check_output(['kvm-ok'])
75 self.kvm = True 75 self.kvm = True
76 except CalledProcessError: 76 except Exception:
77 self.kvm = False 77 self.kvm = False
78 else: 78 else:
79 self.kvm = args.kvm 79 self.kvm = args.kvm
@@ -96,7 +96,7 @@ class QemuCommand(object):
96 "-serial", "tcp:127.0.0.1:%d,server,nowait" % self.serial_port, 96 "-serial", "tcp:127.0.0.1:%d,server,nowait" % self.serial_port,
97 "-m", "1G", 97 "-m", "1G",
98 "-usb", 98 "-usb",
99 "-usbdevice", "tablet", 99 "-device", "usb-tablet",
100 "-show-cursor", 100 "-show-cursor",
101 "-vga", "std", 101 "-vga", "std",
102 "-net", netuser, 102 "-net", netuser,