Skip to content

Commit

Permalink
tests: clone properties too when cloning a template
Browse files Browse the repository at this point in the history
This is especially relevant if extra kernel options are necessary - for
example for SELinux, otherwise full relabel will be started (and will
timeout the VM start). But there may be other cases too.

(cherry picked from commit a769de1)
  • Loading branch information
marmarek committed May 13, 2023
1 parent 4fd7ba3 commit 56d3e68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qubes/tests/integ/grub.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def test_000_standalone_vm(self):
label='red')
self.testvm1.virt_mode = self.virt_mode
self.testvm1.features.update(self.app.domains[self.template].features)
self.testvm1.clone_properties(self.app.domains[self.template])
self.loop.run_until_complete(
self.testvm1.clone_disk_files(self.app.domains[self.template]))
self.loop.run_until_complete(self.testvm1.start())
Expand All @@ -117,6 +118,7 @@ def test_010_template_based_vm(self):
name=self.make_vm_name('template'), label='red')
self.test_template.virt_mode = self.virt_mode
self.test_template.features.update(self.app.domains[self.template].features)
self.test_template.clone_properties(self.app.domains[self.template])
self.loop.run_until_complete(
self.test_template.clone_disk_files(self.app.domains[self.template]))

Expand Down

0 comments on commit 56d3e68

Please sign in to comment.