osbuild: Fix not failing on failable tasks

The task can only fail as a whole, thus it only makes sense to set all
architectures (`*`) as failable. The correct value needs to be checked
though.

JIRA: RHELCMP-3412
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2020-12-02 09:11:08 +01:00
parent 4a048d4a85
commit 98ddc74c16
2 changed files with 3 additions and 8 deletions

View File

@ -96,12 +96,7 @@ class RunOSBuildThread(WorkerThread):
self.can_fail = can_fail
self.num = num
with util.failable(
compose,
bool(config.get("failable")),
variant,
"*",
"osbuild",
logger=self.pool._logger,
compose, can_fail, variant, "*", "osbuild", logger=self.pool._logger,
):
self.worker(
compose, variant, config, arches, version, release, target, repo

View File

@ -381,7 +381,7 @@ class RunOSBuildThreadTest(helpers.PungiTestCase):
None,
"image-target",
[self.topdir + "/compose/Everything/$arch/os"],
["x86_64"],
False,
),
1,
)
@ -408,7 +408,7 @@ class RunOSBuildThreadTest(helpers.PungiTestCase):
None,
"image-target",
[self.topdir + "/compose/Everything/$arch/os"],
["x86_64"],
True,
),
1,
)