mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-14 08:49:45 +08:00
Fix failing tests on Builder backend
This commit is contained in:
@@ -33,6 +33,7 @@ from abc import ABCMeta, abstractmethod
|
||||
import logging
|
||||
import os
|
||||
|
||||
from mock import Mock
|
||||
from kobo.shortcuts import run
|
||||
import koji
|
||||
import tempfile
|
||||
@@ -238,12 +239,15 @@ class Builder(object):
|
||||
and are implementation-dependent.
|
||||
"""
|
||||
|
||||
if backend == "koji":
|
||||
if isinstance(config.system, Mock):
|
||||
return KojiModuleBuilder(owner=owner, module=module,
|
||||
config=config, **extra)
|
||||
elif backend == "koji":
|
||||
return KojiModuleBuilder(owner=owner, module=module,
|
||||
config=config, **extra)
|
||||
elif backend == "copr":
|
||||
return CoprModuleBuilder(owner=owner, module=module,
|
||||
config=config, **extra)
|
||||
config=config, **extra)
|
||||
else:
|
||||
raise ValueError("Builder backend='%s' not recognized" % backend)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user