test: Update check_ostree.yaml to work with RHEL 8.5

There's no any error message in dmesg output on RHEL 8.5 Edge image.
Update playbook to support that.
This commit is contained in:
Xiaofeng Wang 2021-07-01 00:12:12 +08:00 committed by Alexander Todorov
parent bc76f437a0
commit a0ec753e05

View file

@ -291,7 +291,7 @@
- assert:
that:
- result_dmesg_error.stdout_lines | length <= 2
- "'pcieport 0000:00:01.6: Failed to check link status' in result_dmesg_error.stdout or 'Error: Driver \\'pcspkr\\' is already registered, aborting' in result_dmesg_error.stdout"
- "'pcieport 0000:00:01.6: Failed to check link status' in result_dmesg_error.stdout or 'Error: Driver \\'pcspkr\\' is already registered, aborting' in result_dmesg_error.stdout or result_dmesg_error.stdout == ''"
fail_msg: "more or less error and failed log"
success_msg: "everything works as expected"
always: