tests: exclude windows templates from linux tests

This commit is contained in:
Marek Marczykowski-Górecki 2018-07-15 22:08:06 +02:00
parent e51efcf980
commit e6edbabf94
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1130,7 +1130,8 @@ def list_templates():
try:
app = qubes.Qubes()
_templates = tuple(vm.name for vm in app.domains
if isinstance(vm, qubes.vm.templatevm.TemplateVM))
if isinstance(vm, qubes.vm.templatevm.TemplateVM) and
vm.features.get('os', None) != 'Windows')
app.close()
del app
except OSError: