From 3ed3f2ed951297810282b5ca514452a0921cd7e3 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Thu, 4 Mar 2021 16:24:28 +0800 Subject: [PATCH] test: Update dmesg test to work with only one failed log --- test/data/ansible/check_ostree.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/data/ansible/check_ostree.yaml b/test/data/ansible/check_ostree.yaml index 1793015b8..0b547a6f4 100644 --- a/test/data/ansible/check_ostree.yaml +++ b/test/data/ansible/check_ostree.yaml @@ -241,9 +241,8 @@ 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" - - "'Error: Driver \\'pcspkr\\' is already registered, aborting' in result_dmesg_error.stdout" + - 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" fail_msg: "more or less error and failed log" success_msg: "everything works as expected" always: