From c0dbe14fa8315c7aec0884e2d4e88bc037e7d871 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 21 Aug 2024 17:57:28 -0600 Subject: [PATCH] test: skip check for excluded packages on ostree Skip the check for missing excluded packages on ostree. The packages are built-in to the image - no easy way to build image with these packages excluded. Signed-off-by: Rich Megginson --- tests/tests_packages_full.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tests_packages_full.yml b/tests/tests_packages_full.yml index 1db6b60..767521c 100644 --- a/tests/tests_packages_full.yml +++ b/tests/tests_packages_full.yml @@ -46,7 +46,9 @@ - name: Ensure excluded packages are not installed fail: msg: The package {{ item }} should not be installed - when: item in ansible_facts.packages + when: + - not __cockpit_is_ostree # skip this test on ostree + - item in ansible_facts.packages loop: "{{ __cockpit_packages_exclude | d([]) }}" - name: >-