Bug 173774 - Add support for different versions of iOS when loading test expectations
Summary: Add support for different versions of iOS when loading test expectations
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks: 173775
  Show dependency treegraph
 
Reported: 2017-06-23 10:48 PDT by Jonathan Bedard
Modified: 2017-06-30 08:33 PDT (History)
8 users (show)

See Also:


Attachments
Patch (5.51 KB, patch)
2017-06-23 11:35 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (5.56 KB, patch)
2017-06-29 16:26 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2017-06-23 10:48:07 PDT
We should support test expectations for different versions of iOS.
Comment 1 Radar WebKit Bug Importer 2017-06-23 10:48:43 PDT
<rdar://problem/32951132>
Comment 2 Jonathan Bedard 2017-06-23 11:35:05 PDT
Created attachment 313730 [details]
Patch
Comment 3 Aakash Jain 2017-06-29 16:09:05 PDT
Comment on attachment 313730 [details]
Patch

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

rs=me.

> Tools/Scripts/webkitpy/port/ios_device.py:106
> +                if version != device.platform.os_version:

I think "device.platform.os_version != version" would be more readable.

> Tools/Scripts/webkitpy/port/ios_device.py:107
> +                    raise RuntimeError('{} has a version of {} which does not match {}'.format(device, device.platform.os_version, version))

This message might be confusing for readers. Should indicate that there are multiple devices connected having different ios versions.

> Tools/Scripts/webkitpy/port/ios_device.py:109
> +            raise RuntimeError('No devices are available')

Can we move this check about "No devices available" before for loop?
Comment 4 Jonathan Bedard 2017-06-29 16:26:52 PDT
Created attachment 314183 [details]
Patch
Comment 5 WebKit Commit Bot 2017-06-30 08:33:20 PDT
Comment on attachment 314183 [details]
Patch

Clearing flags on attachment: 314183

Committed r218996: <http://trac.webkit.org/changeset/218996>
Comment 6 WebKit Commit Bot 2017-06-30 08:33:21 PDT
All reviewed patches have been landed.  Closing bug.