Bug 132718 - com.apple.iphonesimulator.startSession needs to pass “runtimeIdentifier”
Summary: com.apple.iphonesimulator.startSession needs to pass “runtimeIdentifier”
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad All
: P2 Normal
Assignee: David Farler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-08 17:23 PDT by David Farler
Modified: 2014-05-09 13:25 PDT (History)
2 users (show)

See Also:


Attachments
Patch (4.10 KB, patch)
2014-05-08 17:56 PDT, David Farler
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Farler 2014-05-08 17:23:30 PDT
The simulator runtime may not be able to find a runtime via sdkRoot; its first choice is a runtime identifier keyed off of the SDK version. We should pass this along in the com.apple.iphonesimulator.startSession in old-run-webkit-tests. To allow this, IPhoneSimulatorNotification.pm needs to take all the keys that we give it. It’s currently filtering out a hard-coded list of keys — it won’t hurt to have more items in an NSNotification userInfo dictionary.
Comment 1 David Farler 2014-05-08 17:56:22 PDT
Created attachment 231118 [details]
Patch
Comment 2 David Kilzer (:ddkilzer) 2014-05-09 11:00:08 PDT
Comment on attachment 231118 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=231118&action=review

r=me

> Tools/DumpRenderTree/ios/PerlSupport/IPhoneSimulatorNotification/lib/IPhoneSimulatorNotification.pm:204
> -    my $userInfo = NSMutableDictionary->dictionaryWithCapacity_(4);
> -    for my $property (qw(applicationArguments applicationEnvironment applicationIdentifier applicationPath deviceFamily deviceInfo productType sessionOwner sessionUUID sdkRoot version waitForDebugger)) {
> -        if (exists $dict->{$property}) {
> -            my $key = NSString->stringWithCString_($property);
> -            my $value = $dict->{$property};
> -            $userInfo->setObject_forKey_($value, $key);
> -        }
> +    my $userInfo = NSMutableDictionary->dictionaryWithCapacity_(scalar(keys($dict)) + 1);
> +    foreach my $key (keys($dict)) {
> +        $userInfo->setObject_forKey_($dict->{$key}, $key);

Nice!
Comment 3 WebKit Commit Bot 2014-05-09 13:25:35 PDT
Comment on attachment 231118 [details]
Patch

Clearing flags on attachment: 231118

Committed r168547: <http://trac.webkit.org/changeset/168547>
Comment 4 WebKit Commit Bot 2014-05-09 13:25:37 PDT
All reviewed patches have been landed.  Closing bug.