Skip to content

[test] Take care of change out of deleted directories #65664

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
May 5, 2023

Conversation

drodriguez
Copy link
Contributor

These two tests were changing directories into the temporary, never changing out of there, and then recreating the temporary, which left the rest of the test executing in a non-existing directory.

Modify those tests to change out to the previous directory and avoid executing any command in a non-existing directory.

@drodriguez
Copy link
Contributor Author

@swift-ci please test

These two tests were changing directories into the temporary, never
changing out of there, and then recreating the temporary, which left the
rest of the test executing in a non-existing directory.

Modify those tests to change out to the previous directory and avoid
executing any command in a non-existing directory.
@drodriguez drodriguez force-pushed the cd-out-of-deleted-dirs branch from ee26ca0 to a2c6db3 Compare May 4, 2023 21:02
@drodriguez
Copy link
Contributor Author

@swift-ci please test

@drodriguez
Copy link
Contributor Author

Windows did not understood cd -. It seems to understand pushd / popd (https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/pushd) so let's use that instead.

@drodriguez
Copy link
Contributor Author

@swift-ci please test macOS platform

@drodriguez drodriguez merged commit 1566ecc into swiftlang:main May 5, 2023
@drodriguez drodriguez deleted the cd-out-of-deleted-dirs branch May 5, 2023 21:43
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