diff options
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/utils/commands.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 3dfff0f6d7..88c9bb15ed 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py | |||
@@ -225,7 +225,7 @@ def create_temp_layer(templayerdir, templayername, priority=999, recipepathspec= | |||
225 | 225 | ||
226 | 226 | ||
227 | @contextlib.contextmanager | 227 | @contextlib.contextmanager |
228 | def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None, qemuparams=None): | 228 | def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None, qemuparams=None, overrides={}): |
229 | """ | 229 | """ |
230 | launch_cmd means directly run the command, don't need set rootfs or env vars. | 230 | launch_cmd means directly run the command, don't need set rootfs or env vars. |
231 | """ | 231 | """ |
@@ -247,6 +247,8 @@ def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None, | |||
247 | tinfoil.config_data.setVar("FIND_ROOTFS", '1') | 247 | tinfoil.config_data.setVar("FIND_ROOTFS", '1') |
248 | 248 | ||
249 | recipedata = tinfoil.parse_recipe(pn) | 249 | recipedata = tinfoil.parse_recipe(pn) |
250 | for key, value in overrides.items(): | ||
251 | recipedata.setVar(key, value) | ||
250 | 252 | ||
251 | # The QemuRunner log is saved out, but we need to ensure it is at the right | 253 | # The QemuRunner log is saved out, but we need to ensure it is at the right |
252 | # log level (and then ensure that since it's a child of the BitBake logger, | 254 | # log level (and then ensure that since it's a child of the BitBake logger, |