diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-03-06 17:10:10 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-08 11:13:46 +0000 |
commit | f1f224a2d4d3f2a760632c2254e91a8f94c8814f (patch) | |
tree | 4a316bb786225195d07b152a96401037d4e048a4 /meta/lib/oeqa/utils | |
parent | 5aa4b5a10fb8191cd3453d09701c8beeff9a952f (diff) | |
download | openembedded-core-f1f224a2d4d3f2a760632c2254e91a8f94c8814f.tar.gz openembedded-core-f1f224a2d4d3f2a760632c2254e91a8f94c8814f.tar.bz2 openembedded-core-f1f224a2d4d3f2a760632c2254e91a8f94c8814f.zip |
targetcontrol: add image_fstype argument to commands.runqemu
qemu runner picks up first fsimage type from the hard-coded
list of supported types. This makes it impossible to test
particular image type unless it's not ext4(first type in
the hardcoded list of types).
Added image_fstypes argument to commands.runqemu and QemuTarget
__init__ to specify type of the image to run qemu with.
This will be used to pass wic image type to test efi wic images.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r-- | meta/lib/oeqa/utils/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
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= @contextlib.contextmanager -def runqemu(pn, ssh=True, runqemuparams=''): +def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None): import bb.tinfoil import bb.build @@ -240,7 +240,7 @@ def runqemu(pn, ssh=True, runqemuparams=''): logger.propagate = False logdir = recipedata.getVar("TEST_LOG_DIR") - qemu = oeqa.targetcontrol.QemuTarget(recipedata) + qemu = oeqa.targetcontrol.QemuTarget(recipedata, image_fstype) finally: # We need to shut down tinfoil early here in case we actually want # to run tinfoil-using utilities with the running QEMU instance. |