Bug 141255

Summary: test-webkitpy fails on Mac without iphoneos SDK
Product: WebKit Reporter: Daniel Bates <dbates>
Component: Tools / TestsAssignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, commit-queue, ddkilzer, glenn
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: iOS 8.1   
Attachments:
Description Flags
Patch and unit test ddkilzer: review+

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+
Daniel Bates
Comment 1 2015-02-04 12:09:06 PST
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
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.