diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/runqemu.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runqemu.py b/meta/lib/oeqa/selftest/cases/runqemu.py index bedcf97548..74d47a6db1 100644 --- a/meta/lib/oeqa/selftest/cases/runqemu.py +++ b/meta/lib/oeqa/selftest/cases/runqemu.py | |||
| @@ -33,7 +33,7 @@ class RunqemuTests(OESelftestTestCase): | |||
| 33 | if self.machine == "qemux86-64": | 33 | if self.machine == "qemux86-64": |
| 34 | self.fstypes += " wic.vmdk wic.qcow2 wic.vdi wic.zst" | 34 | self.fstypes += " wic.vmdk wic.qcow2 wic.vdi wic.zst" |
| 35 | 35 | ||
| 36 | self.cmd_common = "runqemu nographic" | 36 | self.cmd_common = "runqemu nographic snapshot" |
| 37 | kvm = oe.types.qemu_use_kvm(get_bb_var('QEMU_USE_KVM'), self.td["TARGET_ARCH"]) | 37 | kvm = oe.types.qemu_use_kvm(get_bb_var('QEMU_USE_KVM'), self.td["TARGET_ARCH"]) |
| 38 | if kvm: | 38 | if kvm: |
| 39 | self.cmd_common += " kvm" | 39 | self.cmd_common += " kvm" |
| @@ -192,7 +192,7 @@ class QemuTest(OESelftestTestCase): | |||
| 192 | cls.machine = get_bb_var('MACHINE') | 192 | cls.machine = get_bb_var('MACHINE') |
| 193 | cls.deploy_dir_image = get_bb_var('DEPLOY_DIR_IMAGE') | 193 | cls.deploy_dir_image = get_bb_var('DEPLOY_DIR_IMAGE') |
| 194 | cls.image_link_name = get_bb_var('IMAGE_LINK_NAME', cls.recipe) | 194 | cls.image_link_name = get_bb_var('IMAGE_LINK_NAME', cls.recipe) |
| 195 | cls.cmd_common = "runqemu nographic" | 195 | cls.cmd_common = "runqemu nographic snapshot" |
| 196 | cls.qemuboot_conf = "%s.qemuboot.conf" % (cls.image_link_name) | 196 | cls.qemuboot_conf = "%s.qemuboot.conf" % (cls.image_link_name) |
| 197 | cls.qemuboot_conf = os.path.join(cls.deploy_dir_image, cls.qemuboot_conf) | 197 | cls.qemuboot_conf = os.path.join(cls.deploy_dir_image, cls.qemuboot_conf) |
| 198 | bitbake(cls.recipe) | 198 | bitbake(cls.recipe) |
| @@ -218,7 +218,7 @@ class QemuTest(OESelftestTestCase): | |||
| 218 | 218 | ||
| 219 | def test_qemu_can_shutdown(self): | 219 | def test_qemu_can_shutdown(self): |
| 220 | self.assertExists(self.qemuboot_conf) | 220 | self.assertExists(self.qemuboot_conf) |
| 221 | cmd = "%s %s" % (self.cmd_common, self.qemuboot_conf) | 221 | cmd = "%s snapshot %s" % (self.cmd_common, self.qemuboot_conf) |
| 222 | shutdown_timeout = 120 | 222 | shutdown_timeout = 120 |
| 223 | with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu: | 223 | with runqemu(self.recipe, ssh=False, launch_cmd=cmd) as qemu: |
| 224 | qemu_shutdown_succeeded = self._start_qemu_shutdown_check_if_shutdown_succeeded(qemu, shutdown_timeout) | 224 | qemu_shutdown_succeeded = self._start_qemu_shutdown_check_if_shutdown_succeeded(qemu, shutdown_timeout) |
