[createiso] Simplify code, test phase

A couple arguments passed from phase to worker threads were not
duplicated. Only one copy is passed now.

A test case was added both for the phase itself and for worker thread as
well.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-04-06 10:41:07 +02:00
parent df400002d8
commit 3e1a6edecc
3 changed files with 530 additions and 43 deletions

View file

@ -63,8 +63,9 @@ class DummyCompose(object):
self.im = mock.Mock(images={'Client': {'i386': [self.image]}})
self.old_composes = []
self.config_dir = '/home/releng/config'
self.notifier = None
def get_variants(self, arch=None, types=None):
def get_variants(self, arch=None, types=None, recursive=None):
return [v for v in self.variants.values() if not arch or arch in v.arches]
def can_fail(self, variant, arch, deliverable):