Skip to content

Commit 75c9fff

Browse files
committed
fix test test_guest_os due to missing template on xen 8.4
1 parent b0e52d2 commit 75c9fff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/integration/smoke/test_guest_os.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ def test_guest_OS_mapping_check_with_hypervisor(self):
181181
raise unittest.SkipTest("OS name check with hypervisor is supported only on XenServer and VMware")
182182

183183
if self.hypervisor.hypervisor.lower() == "xenserver":
184-
testosname="Debian Jessie 8.0"
184+
if tuple(map(int, self.hypervisor.hypervisorversion.split("."))) >= (8, 4, 0):
185+
testosname = "Debian Bookworm 12"
186+
else:
187+
testosname = "Debian Jessie 8.0"
185188
else:
186189
testosname="debian4_64Guest"
187190

0 commit comments

Comments
 (0)