diff options
author | Cole Robinson <crobinso@redhat.com> | 2020-08-26 13:13:36 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-08-26 16:24:39 -0400 |
commit | cfd6d6ead447b5a700056d9ca53bff0a2e4fadc1 (patch) | |
tree | 5d9c9873577daa5b7dc07f44f4c12736c57ae05a /virtManager/object/domain.py | |
parent | 4c1b35f7e7c8fbe67a2e55883d8c2ec5d9e87bd1 (diff) | |
download | virt-manager-cfd6d6ead447b5a700056d9ca53bff0a2e4fadc1.tar.gz |
uitests: Finish vmmenu.py coverage
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager/object/domain.py')
-rw-r--r-- | virtManager/object/domain.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py index 3a3d510b..727aacd1 100644 --- a/virtManager/object/domain.py +++ b/virtManager/object/domain.py @@ -1318,9 +1318,12 @@ class vmmDomain(vmmLibvirtObject): @vmmLibvirtObject.lifecycle_action def startup(self): - sync_time = self.has_managed_save() + has_managed = self.has_managed_save() + if has_managed and self.config.CLITestOptions.test_managed_save: + raise RuntimeError("fake error for managed save") + self._backend.create() - if sync_time: + if has_managed: self._async_set_time() @vmmLibvirtObject.lifecycle_action @@ -1365,6 +1368,8 @@ class vmmDomain(vmmLibvirtObject): if meter: start_job_progress_thread(self, meter, _("Saving domain to disk")) + if self.config.CLITestOptions.test_managed_save: + time.sleep(3) self._backend.managedSave(0) def has_managed_save(self): |