summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/utils/commands.py')
-rw-r--r--meta/lib/oeqa/utils/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 88c9bb15ed..2951dfb49c 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
228def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None, qemuparams=None, overrides={}): 228def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None, qemuparams=None, overrides={}, discard_writes=True):
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 """
@@ -278,7 +278,7 @@ def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None,
278 try: 278 try:
279 qemu.deploy() 279 qemu.deploy()
280 try: 280 try:
281 qemu.start(params=qemuparams, ssh=ssh, runqemuparams=runqemuparams, launch_cmd=launch_cmd) 281 qemu.start(params=qemuparams, ssh=ssh, runqemuparams=runqemuparams, launch_cmd=launch_cmd, discard_writes=discard_writes)
282 except bb.build.FuncFailed: 282 except bb.build.FuncFailed:
283 raise Exception('Failed to start QEMU - see the logs in %s' % logdir) 283 raise Exception('Failed to start QEMU - see the logs in %s' % logdir)
284 284