Skip to content

Fix the stp downloads: Mac OS Monterey and Mac OS Ventura#34771

Merged
foolip merged 2 commits intoweb-platform-tests:masterfrom
jcscottiii:jcscottiii/fix-stp-downloads
Jul 11, 2022
Merged

Fix the stp downloads: Mac OS Monterey and Mac OS Ventura#34771
foolip merged 2 commits intoweb-platform-tests:masterfrom
jcscottiii:jcscottiii/fix-stp-downloads

Conversation

@jcscottiii
Copy link
Contributor

@jcscottiii jcscottiii commented Jul 11, 2022

  • Fix the STP regex to pick up the links for STP.

Why we need this:

  1. When converting to string with text_content, it converts
    to no space. For example:
  • Input: Safari Technology Preview<br>for macOS&nbsp;Ventura
  • Output: Safari Technology Previewfor macOS Ventura
    As a result, the \s+ needs to be changed to \s*

Fixes #34752

- Fix the STP regex to pick up the links for STP.

Why we need this:
        When converting to string with text_content, it converts <br> to no space.
        For example:
        Input: Safari Technology Preview<br>for macOS&nbsp;Ventura
        Output: Safari Technology Previewfor macOS Ventura
As a result, the \s+ needs to be changed to \s*

TODO: fix the mac os beta 13.3
@jcscottiii jcscottiii changed the title Fix the stp downloads: Mac OS Monterey Fix the stp downloads: Mac OS Monterey and Mac OS Ventura Jul 11, 2022
@jcscottiii
Copy link
Contributor Author

With the changes, STP successfully downloads (logs):

INFO:install:Found STP URLs for macOS ==13.*, ~=12.3
INFO:install:Downloading Safari from https://secure-appldnld.apple.com/STP/012-32918-20220629-B3452905-0138-4CA9-A4E6-334B63585653/SafariTechnologyPreview.dmg

@jcscottiii jcscottiii marked this pull request as ready for review July 11, 2022 18:01
Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent test here, thank you!

@foolip foolip merged commit f96f182 into web-platform-tests:master Jul 11, 2022
@jcscottiii jcscottiii deleted the jcscottiii/fix-stp-downloads branch July 11, 2022 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

STP downloads are failing

5 participants