From 8b3d3ad2343ab10b1cab3d82d923b9a4bbec294c Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Oct 16 2019 07:08:48 +0000 Subject: PR#1682: mostly only mock exit code 10 ends in build.log Merges #1682 https://pagure.io/koji/pull-request/1682 Fixes: #1679 https://pagure.io/koji/issue/1679 New mock exit codes not recognized --- diff --git a/builder/kojid b/builder/kojid index 9843be8..eef8477 100755 --- a/builder/kojid +++ b/builder/kojid @@ -543,7 +543,7 @@ class BuildRoot(object): def _mockResult(self, rv, logfile=None): if logfile: pass - elif os.WIFEXITED(rv) and os.WEXITSTATUS(rv) == 1: + elif os.WIFEXITED(rv) and os.WEXITSTATUS(rv) == 10: logfile = 'build.log' else: logfile = 'root.log'