Răsfoiți Sursa

tests: exclude windows templates from linux tests

Marek Marczykowski-Górecki 5 ani în urmă
părinte
comite
e6edbabf94
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      qubes/tests/__init__.py

+ 2 - 1
qubes/tests/__init__.py

@@ -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: