diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/targetcontrol.py | 4 | ||||
-rw-r--r-- | meta/lib/oeqa/utils/commands.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index dbd2c7ca1e..0ad3a6bf14 100644 --- a/meta/lib/oeqa/targetcontrol.py +++ b/meta/lib/oeqa/targetcontrol.py | |||
@@ -113,11 +113,11 @@ class QemuTarget(BaseTarget): | |||
113 | 113 | ||
114 | supported_image_fstypes = ['ext3', 'ext4', 'cpio.gz', 'wic'] | 114 | supported_image_fstypes = ['ext3', 'ext4', 'cpio.gz', 'wic'] |
115 | 115 | ||
116 | def __init__(self, d): | 116 | def __init__(self, d, image_fstype=None): |
117 | 117 | ||
118 | super(QemuTarget, self).__init__(d) | 118 | super(QemuTarget, self).__init__(d) |
119 | 119 | ||
120 | self.image_fstype = self.get_image_fstype(d) | 120 | self.image_fstype = image_fstype or self.get_image_fstype(d) |
121 | self.qemulog = os.path.join(self.testdir, "qemu_boot_log.%s" % self.datetime) | 121 | self.qemulog = os.path.join(self.testdir, "qemu_boot_log.%s" % self.datetime) |
122 | self.rootfs = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), d.getVar("IMAGE_LINK_NAME") + '.' + self.image_fstype) | 122 | self.rootfs = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), d.getVar("IMAGE_LINK_NAME") + '.' + self.image_fstype) |
123 | self.kernel = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), d.getVar("KERNEL_IMAGETYPE", False) + '-' + d.getVar('MACHINE', False) + '.bin') | 123 | self.kernel = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), d.getVar("KERNEL_IMAGETYPE", False) + '-' + d.getVar('MACHINE', False) + '.bin') |
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 73ede2379f..82c5908e9c 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py | |||
@@ -218,7 +218,7 @@ def create_temp_layer(templayerdir, templayername, priority=999, recipepathspec= | |||
218 | 218 | ||
219 | 219 | ||
220 | @contextlib.contextmanager | 220 | @contextlib.contextmanager |
221 | def runqemu(pn, ssh=True, runqemuparams=''): | 221 | def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None): |
222 | 222 | ||
223 | import bb.tinfoil | 223 | import bb.tinfoil |
224 | import bb.build | 224 | import bb.build |
@@ -240,7 +240,7 @@ def runqemu(pn, ssh=True, runqemuparams=''): | |||
240 | logger.propagate = False | 240 | logger.propagate = False |
241 | logdir = recipedata.getVar("TEST_LOG_DIR") | 241 | logdir = recipedata.getVar("TEST_LOG_DIR") |
242 | 242 | ||
243 | qemu = oeqa.targetcontrol.QemuTarget(recipedata) | 243 | qemu = oeqa.targetcontrol.QemuTarget(recipedata, image_fstype) |
244 | finally: | 244 | finally: |
245 | # We need to shut down tinfoil early here in case we actually want | 245 | # We need to shut down tinfoil early here in case we actually want |
246 | # to run tinfoil-using utilities with the running QEMU instance. | 246 | # to run tinfoil-using utilities with the running QEMU instance. |