-
Notifications
You must be signed in to change notification settings - Fork 277
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
Conversation
Signed-off-by: Henry Schreiner <[email protected]>
There was a problem hiding this 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. |
There was a problem hiding this 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).
This should add support for multiple commands on iOS.
Remember to select "hide whitespace" when viewing the diff. :)
Fix #2423.
CC @freakboy3742