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

[Linux] minor POSIX and path case comparison fixups #1531

Merged
merged 4 commits into from
Oct 2, 2019

Conversation

chrisd8088
Copy link
Collaborator

@chrisd8088 chrisd8088 commented Sep 29, 2019

Convert a few recent inadvertent uses of StringComparison.OrdinalIgnoreCase in file path comparisons to the relevant OS-specific PathComparison helpers.

The array returned by Directory.GetDirectories() is inconsistently ordered across different platforms, so we use ShouldContain to check the array's contents in CheckMainSparseFolder() in the SparseTests functional tests rather than explicit array indexes.

We can also mark one recent new functional test, RunPythonExecutable(), as POSIXOnly since it applies to Linux as well as macOS.

As this Python test succeeds on Linux as well, we can
convert it to POSIXOnly.
The array returned by Directory.GetDirectories() is
inconsistently ordered across different OS platforms, so
we use a PathComparer to sort the array prior to checking
its contents in CheckMainSparseFolder() in the
SparseTests functional tests.
@chrisd8088 chrisd8088 marked this pull request as ready for review October 1, 2019 06:55
@chrisd8088 chrisd8088 removed the WIP label Oct 1, 2019
Per advice from wilbaker, just use ShouldContain() on
the contents of the array returned by GetDirectories()
in CheckMainSparseFolder() instead of sorting it.
@chrisd8088
Copy link
Collaborator Author

/azp run GitHub VFSForGit Mac Functional Tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@chrisd8088
Copy link
Collaborator Author

/azp run GitHub VFSForGit Mac Functional Tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants