Skip to content

feat: support multiple commands on iOS #2432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 30, 2025

Conversation

henryiii
Copy link
Contributor

@henryiii henryiii commented May 29, 2025

This should add support for multiple commands on iOS.

Remember to select "hide whitespace" when viewing the diff. :)

Fix #2423.

CC @freakboy3742

@henryiii henryiii requested a review from Copilot May 29, 2025 22:05
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for running multiple test commands on iOS by introducing a new command-splitting function and updating the test configuration.

  • Updated test command in test_ios.py to chain multiple commands using "&&".
  • Added a new split_command function and adjusted command processing in ios.py to handle both "python -m" and "pytest" prefixes.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/test_ios.py Updated test command to support multiple chained commands for iOS testing.
cibuildwheel/platforms/ios.py Added split_command function and refactored command parsing using pattern matching.

Copy link
Contributor

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

High level - this makes sense; I'm sure someone will find it useful.

FWIW: this approach will involve 2 distinct "compile and start simulator" passes, which will be a little slow; but it will definitely work. If there's any optimisation to be had, it will be upstream in the testbed implementation (which is part of CPython itself).

@henryiii henryiii merged commit ea08120 into pypa:main May 30, 2025
27 checks passed
@henryiii henryiii deleted the henryiii/feat/iosmulti branch May 30, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support running multiple test commands on iOS
3 participants