mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-27 12:12:22 +08:00
Tests: clone modules with the packaging utility
This is how packagers do. Git URL configuration can also be removed. Also: redirect command outputs, so that pytest can capture them. Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
This commit is contained in:
@@ -2,13 +2,17 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
|
||||
from kobo import rpmlib
|
||||
import koji
|
||||
import yaml
|
||||
import requests
|
||||
from sh import Command, git
|
||||
import sh
|
||||
|
||||
our_sh = sh(_out=sys.stdout, _err=sys.stderr, _tee=True)
|
||||
from our_sh import Command, git # noqa
|
||||
|
||||
|
||||
class Koji:
|
||||
@@ -123,7 +127,9 @@ class Build:
|
||||
"""
|
||||
|
||||
def __init__(self, packaging_utility, mbs_api):
|
||||
self._packaging_utility = Command(packaging_utility)
|
||||
self._packaging_utility = Command(packaging_utility).bake(
|
||||
_out=sys.stdout, _err=sys.stderr, _tee=True
|
||||
)
|
||||
self._mbs_api = mbs_api
|
||||
self._data = None
|
||||
self._component_data = None
|
||||
|
||||
Reference in New Issue
Block a user