From 56d3e68b144e26dde0e0877cb7f0b0bc8b3fa2d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 16 Dec 2022 23:46:36 +0100 Subject: [PATCH] tests: clone properties too when cloning a template 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 a769de1be85fc1e661a2d479804478ecec91fe7f) --- qubes/tests/integ/grub.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/tests/integ/grub.py b/qubes/tests/integ/grub.py index abed4f071..2355b735f 100644 --- a/qubes/tests/integ/grub.py +++ b/qubes/tests/integ/grub.py @@ -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()) @@ -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]))