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 Ansible version comparison in tests #837

Merged
merged 1 commit into from
Sep 21, 2021
Merged

Conversation

Shrews
Copy link
Contributor

@Shrews Shrews commented Sep 20, 2021

Current Ansible version string comparison for the test_display_callback.py::test_callback_plugin_records_notify_events test is incorrect as 2.5 does not compare as less than 2.11, etc., so the test is being skipped.

@samdoran
Copy link
Contributor

Can you remove the unused import of ANSIBLE_VERSION?

@Shrews
Copy link
Contributor Author

Shrews commented Sep 20, 2021

Can you remove the unused import of ANSIBLE_VERSION?

Done in the previous commit.

@samdoran samdoran added the gate label Sep 20, 2021
Copy link
Contributor

@ansible-zuul ansible-zuul bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Shrews Shrews added gate and removed gate labels Sep 20, 2021
@ansible-zuul ansible-zuul bot merged commit dc5e91f into ansible:devel Sep 21, 2021
@Shrews Shrews deleted the ver_comp branch September 21, 2021 15:07
@patchback
Copy link

patchback bot commented Sep 21, 2021

Backport to release_2.0: 💚 backport PR created

✅ Backport PR branch: patchback/backports/release_2.0/dc5e91f4655d61bdecb437067b408c88bc69841b/pr-837

Backported as #841

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Sep 21, 2021
Fix Ansible version comparison in tests

Current Ansible version string comparison for the test_display_callback.py::test_callback_plugin_records_notify_events test is incorrect as 2.5 does not compare as less than 2.11, etc., so the test is being skipped.

Reviewed-by: Sam Doran <sdoran@redhat.com>
Reviewed-by: None <None>
(cherry picked from commit dc5e91f)
ansible-zuul bot added a commit that referenced this pull request Sep 21, 2021
…dc5e91f4655d61bdecb437067b408c88bc69841b/pr-837

[PR #837/dc5e91f4 backport][release_2.0] Fix Ansible version comparison in tests

This is a backport of PR #837 as merged into devel (dc5e91f).
Current Ansible version string comparison for the test_display_callback.py::test_callback_plugin_records_notify_events test is incorrect as 2.5 does not compare as less than 2.11, etc., so the test is being skipped.

Reviewed-by: Sam Doran <sdoran@redhat.com>
Reviewed-by: None <None>
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.

None yet

2 participants