Skip to content
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

Add standalone flag for logic tests #5

Merged
merged 3 commits into from
Aug 6, 2019

Conversation

jerrymarino
Copy link
Contributor

Under Xcode 11 Beta 5 this is required

Under Xcode 11 Beta 5 this is required
@jerrymarino
Copy link
Contributor Author

I'm not sure when --standalone was available as an argument - it might be worth only adding for Xcode 11 and greater

'xcrun', 'simctl', 'spawn', sim_id,

command = ['xcrun', 'simctl', 'spawn']
if xcode_info_util.GetXcodeVersionNumber() >= 1100:

Choose a reason for hiding this comment

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

does it need this version check? i.e. would it behave same way on previous xcodes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe not, and I'm not sure what version the --standalone flag was introduced. If we try to run with --standalone on a version before the flag was supported, then it might cause an error.

Let me know if you'd like to just remove the version check and I'll revert 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Based on the slack conversation it sounds like you don't need this check because this existed before too


command = ['xcrun', 'simctl', 'spawn']
if xcode_info_util.GetXcodeVersionNumber() >= 1100:
command.extend('--standalone')
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
command.extend('--standalone')
command.append('--standalone')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will update if we decided to leave the version check

Copy link
Contributor

@albertdai albertdai left a comment

Choose a reason for hiding this comment

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

Thanks for fixing that.

@albertdai albertdai merged commit 742b148 into google:master Aug 6, 2019
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.

4 participants