Bug 15868 - build-testkjs reports grep's exit code instead of xcodebuild (thus never fails!)
Summary: build-testkjs reports grep's exit code instead of xcodebuild (thus never fails!)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Eric Seidel (no email)
URL:
Keywords: Regression
Depends on:
Blocks:
 
Reported: 2007-11-06 20:57 PST by Eric Seidel (no email)
Modified: 2007-11-06 21:31 PST (History)
0 users

See Also:


Attachments
the fix (1.21 KB, patch)
2007-11-06 21:22 PST, Eric Seidel (no email)
mrowe: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2007-11-06 20:57:21 PST
build-testkjs reports grep's exit code instead of xcodebuild (thus never fails!)

This is the trouble line:

    $result = system "sh", "-c", 'xcodebuild -project JavaScriptCore.xcodeproj -target testkjs "$@" | grep -v setenv', "xcodebuild",  @options, @ARGV;

I'm sure there is some slick way to grab the exit code from the other side of the pipe.  But I'm rather tired and going to cop-out and file this bug instead.
Comment 1 Eric Seidel (no email) 2007-11-06 21:22:38 PST
Created attachment 17084 [details]
the fix
Comment 2 Mark Rowe (bdash) 2007-11-06 21:26:35 PST
Comment on attachment 17084 [details]
the fix

The patch claims I have already reviewed this, so here is an r=me in Bugzilla too.
Comment 3 Eric Seidel (no email) 2007-11-06 21:31:23 PST
Landed as r27497