try to better guess mock's error log

Fixes: https://pagure.io/koji/issue/1899
This commit is contained in:
Tomas Kopecek 2020-02-12 13:02:49 +01:00
parent 2b2cfcf9e7
commit c7d35e9121

View file

@ -559,6 +559,8 @@ class BuildRoot(object):
pass
elif os.WIFEXITED(rv) and os.WEXITSTATUS(rv) == 10:
logfile = 'build.log'
elif os.WIFEXITED(rv) and os.WEXITSTATUS(rv) == 1:
logfile = 'build.log or root.log'
else:
logfile = 'root.log'
msg = '; see %s for more information' % logfile