-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Cleanup current directory tests #74311
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
Replace hardcoded list of platforms with symlinked temp directory with a relaxed condition that allows the test to pass even when the temp directory is symlinked.
|
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsReplace hardcoded list of platforms with symlinked temp directory with a relaxed condition that allows the test to pass even when the temp directory is symlinked.
|
|
Context #74070 (comment) |
| // path that followed the symlink. | ||
| if (!OperatingSystem.IsMacOS()) | ||
|
|
||
| if ((File.GetAttributes(Path.GetDirectoryName(TestDirectory)) & FileAttributes.ReparsePoint) != 0) |
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.
This file has the comprehensive current directory tests, so it gets more complicated checks unlike the other places.
|
|
||
| // We would ideally use realpath to do this, but it resolves symlinks, requires that the file actually exist, | ||
| // and turns it into a full path, which we only want if fullCheck is true. | ||
| // We would ideally use realpath to do this, but it resolves symlinks and requires that the file actually exist. |
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.
Somewhat related comment fix
/tmp does not seem to be an ordinary symlink
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Replace hardcoded list of platforms with symlinked temp directory with a relaxed condition that allows the test to pass even when the temp directory is symlinked.