Bug 1373115

Summary: mock 1.2.20 breaks error codes
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: mockAssignee: Miroslav Suchý <msuchy>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: urgent    
Version: rawhideCC: jdisnard, mebrown, msimacek, msuchy, pbrobinson, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-20 18:54:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Peter Robinson 2016-09-05 09:13:52 UTC
We had this once before. 

http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=3705575

This build reports "BuildError: error building package (arch aarch64), mock exited with status 1; see build.log for more information" 

But if you look at the logs the error is actually in root.log, mock is not reporting the correct error code to koji. This was broken once before. Can we get some tests added to the process so it doesn't happen again.

Comment 1 Miroslav Suchý 2016-10-12 14:30:52 UTC
I cannot reproduce it. When I add
  BuildRequires: foo
so it fail in root.log phase, it correctly return exit code 30.

Do you have some reproducer?

Comment 2 Peter Robinson 2016-11-20 18:54:25 UTC
I've not seen it since