diff options
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index b7816167e8..ba44b96f53 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -97,7 +97,7 @@ class QemuRunner: | |||
97 | self._dump_host() | 97 | self._dump_host() |
98 | raise SystemExit | 98 | raise SystemExit |
99 | 99 | ||
100 | def start(self, qemuparams = None, get_ip = True, extra_bootparams = None, runqemuparams='', launch_cmd=None): | 100 | def start(self, qemuparams = None, get_ip = True, extra_bootparams = None, runqemuparams='', launch_cmd=None, discard_writes=True): |
101 | if self.display: | 101 | if self.display: |
102 | os.environ["DISPLAY"] = self.display | 102 | os.environ["DISPLAY"] = self.display |
103 | # Set this flag so that Qemu doesn't do any grabs as SDL grabs | 103 | # Set this flag so that Qemu doesn't do any grabs as SDL grabs |
@@ -118,7 +118,7 @@ class QemuRunner: | |||
118 | os.environ["DEPLOY_DIR_IMAGE"] = self.deploy_dir_image | 118 | os.environ["DEPLOY_DIR_IMAGE"] = self.deploy_dir_image |
119 | 119 | ||
120 | if not launch_cmd: | 120 | if not launch_cmd: |
121 | launch_cmd = 'runqemu snapshot %s' % runqemuparams | 121 | launch_cmd = 'runqemu %s %s ' % ('snapshot' if discard_writes else '', runqemuparams) |
122 | if self.use_kvm: | 122 | if self.use_kvm: |
123 | logger.info('Using kvm for runqemu') | 123 | logger.info('Using kvm for runqemu') |
124 | launch_cmd += ' kvm' | 124 | launch_cmd += ' kvm' |