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

Fix test: tests/pytests/integration/states/test_file.py on windows #67175

Merged

Conversation

barneysowood
Copy link
Contributor

What does this PR do?

Fixes the version check for patch in test_file.py. It was expecting the version string to be the 2nd string in the output, but it can be the 3rd. Updated the parsing to just get the last string on the first line.

What issues does this PR fix or reference?

#67140

Previous Behavior

Test failed due to the version check fixture throwing an exception when trying to parse the version

New Behavior

Now parses the version correctly. Unfortunately, the version installed is 2.5.9 and the version check is for >= 2.6, so it will now skip the tests. Will open an issue to work out getting a newer version of patch installed.

Fixes the version check for patch in test_file.py. It was expecting the
version string to be the 2nd string in the output, but it can be the
3rd. Updated the parsing to just get the last string on the first line.
@barneysowood
Copy link
Contributor Author

@dwoz or @twangboy - this is ready for review/merging

@dwoz dwoz merged commit 76fcc87 into saltstack:3006.x Jan 20, 2025
168 of 178 checks passed
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