Update dnf tests to reflect new behavior. (#76743)

* Update dnf tests to reflect new behavior.

Previously dnf would report there was nothing to do when trying to install a package from the cache when it was not present.

A recent update to dnf has changed this behavior to match yum, resulting in a failure instead.

* Allow dnf to fail or report no changes.
pull/76746/head
Matt Clay 3 years ago committed by GitHub
parent 665e3dc629
commit c1df36e3ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,8 +8,9 @@
state: latest state: latest
cacheonly: true cacheonly: true
register: dnf_result register: dnf_result
ignore_errors: true
- name: Verify dnf has not changed - name: Verify dnf failed or has not changed
assert: assert:
that: that:
- "not dnf_result is changed" - "dnf_result is failed or not dnf_result is changed"

Loading…
Cancel
Save