From f66b39e819ce8766a2c151ae5c64f351f8ab69b0 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Fri, 11 Oct 2024 09:29:09 +0800 Subject: [PATCH] test: add ostree-rs-ext version-skew test Test comes from issue https://github.com/containers/bootc/issues/800 Both rpm-ostree and bootc bump ostree-rs-ext. This test is to avoid version-skew issue Signed-off-by: Xiaofeng Wang --- tests/e2e/playbooks/check-system.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/e2e/playbooks/check-system.yaml b/tests/e2e/playbooks/check-system.yaml index 5e17e1133..38cf0ae4d 100644 --- a/tests/e2e/playbooks/check-system.yaml +++ b/tests/e2e/playbooks/check-system.yaml @@ -45,8 +45,26 @@ - name: check rpm-ostree status command: rpm-ostree status + register: result_rpm_ostree_status ignore_errors: true + # issue https://github.com/containers/bootc/issues/800 + # ostree-rs-ext version-skew test (bumped in rpm-ostree and in bootc) + - name: check rpm-ostree output + block: + - assert: + that: + - "'error' not in result_rpm_ostree_status.stdout" + fail_msg: "rpm-ostree status failed" + success_msg: "rpm-ostree status succeeded" + always: + - set_fact: + total_counter: "{{ total_counter | int + 1 }}" + rescue: + - name: failed count + 1 + set_fact: + failed_counter: "{{ failed_counter | int + 1 }}" + - name: check bootc status command: bootc status ignore_errors: true