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

Fixes parity tests failures in windows machines. #1830

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kautikdk
Copy link
Member

gsutil rsync parity tests are failing in windows machine because of pipe character. Pipe character, |, is a special character for winodws cmd and it should escaped while being used in command input. Windows cmd treats ^ character as escape character and can be used to escape pipe character as well but it works only for internal windows commands and fails to escape for external commands.

It appears that ^^^ string is correctly escaping pipe character even though there is no official windows documentation related to this.

This PR modifies rsync test check which is testing pipe character in regex input. Since it needs to be escaped for windows machines, I have added a separate condition to format input incase of windows shim only mode.

@sameer-google sameer-google requested review from sameer-google and removed request for sameer-google December 13, 2024 11:11
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.

1 participant