WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
141255
test-webkitpy fails on Mac without iphoneos SDK
https://bugs.webkit.org/show_bug.cgi?id=141255
Summary
test-webkitpy fails on Mac without iphoneos SDK
Daniel Bates
Reported
2015-02-04 12:07:58 PST
We should support running the Python unit tests on a Mac without the iphoneos SDK.
Attachments
Patch and unit test
(4.45 KB, patch)
2015-02-04 12:12 PST
,
Daniel Bates
ddkilzer
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2015-02-04 12:09:06 PST
<
rdar://problem/19619691
>
Daniel Bates
Comment 2
2015-02-04 12:12:31 PST
Created
attachment 246041
[details]
Patch and unit test As mentioned in the ChangeLog entry for PlatformInfo.xcode_sdk_version(), I took advantage of the behavior that xcrun --show-sdk-version only writes to standard output if the SDK is installed to return the empty string when the SDK is not installed. Let me know if it is preferred to explicitly check the exit status of xcrun and return the empty string instead of making use of this behavior.
David Kilzer (:ddkilzer)
Comment 3
2015-02-04 12:16:32 PST
Comment on
attachment 246041
[details]
Patch and unit test r=me
Alexey Proskuryakov
Comment 4
2015-02-04 12:17:11 PST
Comment on
attachment 246041
[details]
Patch and unit test View in context:
https://bugs.webkit.org/attachment.cgi?id=246041&action=review
> Tools/Scripts/webkitpy/port/ios.py:57 > + raise Exception("Ensure that the Xcode command line tools and the iphoneos SDK are installed.")
Maybe add a "please" somewhere here? E.g. "Please install Xcode command line tools and the iPhone SDK". Also, why do we need command line tools? I thought that we didn't rely on them.
Daniel Bates
Comment 5
2015-02-04 12:24:22 PST
(In reply to
comment #4
)
> Comment on
attachment 246041
[details]
> Patch and unit test > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=246041&action=review
> > > Tools/Scripts/webkitpy/port/ios.py:57 > > + raise Exception("Ensure that the Xcode command line tools and the iphoneos SDK are installed.") > > Maybe add a "please" somewhere here? E.g. "Please install Xcode command line > tools and the iPhone SDK". > > Also, why do we need command line tools? I thought that we didn't rely on > them.
After talking with Alexey Proskuryakov on IRC today (02/04) we confirmed that xcrun is included with a default OS install. So, I will update the exception message to read: "Please install the iOS SDK."
Daniel Bates
Comment 6
2015-02-04 12:26:29 PST
Committed
r179622
: <
http://trac.webkit.org/changeset/179622
>
Daniel Bates
Comment 7
2015-02-04 14:05:19 PST
Fixed exception message per
comment 5
and committed this in <
http://trac.webkit.org/changeset/179629
>.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug