Skip to content

[Macros] Update executable plugin test to use the python running 'lit' #63888

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 1 commit into from
Feb 24, 2023

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Feb 24, 2023

Also, update 'mock_plugin.py' to support python2

rdar://105870339

Also, update 'mock_plugin.py' to support python2

rdar://105870339
@rintaro
Copy link
Member Author

rintaro commented Feb 24, 2023

@swift-ci Please smoke test

Comment on lines -24 to +23
#!/usr/bin/env python3
#!PYTHON_EXEC_PATH
Copy link
Contributor

@bnbarham bnbarham Feb 24, 2023

Choose a reason for hiding this comment

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

Unfortunately I didn't think of this earlier, but using hashbang means that the mock tests will never work on Windows. The only way around that would be to create an actual executable though I think. At least this gets the test working for now, but would be nice if we could come up with something else here.

Ie. we could have a tools/mock-plugin swift library + build that in this test instead.

@rintaro rintaro merged commit 5f93166 into swiftlang:main Feb 24, 2023
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.

2 participants