tests: resolve template name when copying from host collection

This commit is contained in:
Marek Marczykowski-Górecki 2016-02-11 01:46:25 +01:00 提交者 Wojtek Porczyk
父節點 81dbe3628f
當前提交 0307ec22f2

查看文件

@ -395,6 +395,8 @@ class SystemTestsMixin(object):
def init_default_template(self, template=None):
if template is None:
template = self.host_app.default_template
elif isinstance(template, basestring):
template = self.host_app.domains[template]
template_vm = self.app.add_new_vm(qubes.vm.templatevm.TemplateVM,
name=template.name,