test: Fedora error/fail logs should not be a must
Signed-off-by: Yuxin Sun <yuxisun@redhat.com>
This commit is contained in:
parent
044fa0ffaf
commit
c09638efe5
1 changed files with 0 additions and 59 deletions
|
|
@ -285,65 +285,6 @@
|
|||
shell: dmesg --notime | grep -i "error\|fail" || true
|
||||
register: result_dmesg_error
|
||||
|
||||
# (RHEL)default kernel has error and fail log
|
||||
- name: no more error or failed log
|
||||
block:
|
||||
- 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 or result_dmesg_error.stdout == ''"
|
||||
fail_msg: "more or less error and failed log"
|
||||
success_msg: "everything works as expected"
|
||||
always:
|
||||
- set_fact:
|
||||
total_counter: "{{ total_counter | int + 1 }}"
|
||||
rescue:
|
||||
- name: failed count + 1
|
||||
set_fact:
|
||||
failed_counter: "{{ failed_counter | int + 1 }}"
|
||||
when:
|
||||
- ansible_facts['distribution'] == "RedHat"
|
||||
- "'rt' not in result_kernel.stdout"
|
||||
|
||||
# (RHEL)rt kernel does not have any error or fail log
|
||||
- name: no any error or fail log
|
||||
block:
|
||||
- assert:
|
||||
that:
|
||||
- "'sha512_generic: module verification failed: signature and/or required key missing - tainting kernel' in result_dmesg_error.stdout or result_dmesg_error.stdout == ''"
|
||||
fail_msg: "found error or fail log in rt kernel test"
|
||||
success_msg: "no error or fail log found"
|
||||
always:
|
||||
- set_fact:
|
||||
total_counter: "{{ total_counter | int + 1 }}"
|
||||
rescue:
|
||||
- name: failed count + 1
|
||||
set_fact:
|
||||
failed_counter: "{{ failed_counter | int + 1 }}"
|
||||
when:
|
||||
- "'rt' in result_kernel.stdout"
|
||||
|
||||
# (Fedora)default kernel has error and fail log
|
||||
- name: no more error or failed log
|
||||
block:
|
||||
- assert:
|
||||
that:
|
||||
- result_dmesg_error.stdout_lines | length == 2
|
||||
- "'pcieport 0000:00:01.6: pciehp: Failed to check link status' in result_dmesg_error.stdout"
|
||||
- "'RAS: Correctable Errors collector initialized' in result_dmesg_error.stdout"
|
||||
fail_msg: "more or less error and failed log"
|
||||
success_msg: "everything works as expected"
|
||||
always:
|
||||
- set_fact:
|
||||
total_counter: "{{ total_counter | int + 1 }}"
|
||||
rescue:
|
||||
- name: failed count + 1
|
||||
set_fact:
|
||||
failed_counter: "{{ failed_counter | int + 1 }}"
|
||||
when:
|
||||
- ansible_facts['distribution'] == "Fedora"
|
||||
- "'rt' not in result_kernel.stdout"
|
||||
|
||||
# case: check running container with podman
|
||||
- name: run ubi8 image
|
||||
command: podman run registry.access.redhat.com/ubi8/ubi-minimal:latest cat /etc/redhat-release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue