Skip to content

[Integration Tests] Calculate the swiftRootDir more accurately #518

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

porglezomp
Copy link
Contributor

Previously the swiftRootDir would be calculated by taking swiftBuildDir/../../.., which is accurate on most developer machines, but it is not accurate for some CI bots that use one fewer layer of directories. We already know the swiftRootDir more accurately, we're using it for calculating relative paths, just use that one.

Previously the swiftRootDir would be calculated by taking
swiftBuildDir/../../.., which is accurate on most developer machines,
but it is not accurate for some CI bots that use one fewer layer of
directories. We already know the swiftRootDir more accurately, we're
using it for calculating relative paths, just use that one.
@porglezomp
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

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

Thank you!

@porglezomp
Copy link
Contributor Author

This should hopefully fix the failure we saw in swiftlang/swift#36222

@porglezomp porglezomp merged commit 41647b4 into swiftlang:main Mar 2, 2021
@porglezomp porglezomp deleted the swift-driver-integration-tests-you-know-the-root-already branch March 2, 2021 22:05
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