From feaa093ef0d2115fb06e2a62b059c87f191c15ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Thu, 8 Jun 2023 11:52:53 +0200 Subject: [PATCH] test/check_ostree: fix check of custom systemd unit override MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fedora 38 contains a global override for all units, thus checking for equality no longer works. Instead, this commit just checks whether the override is included. Signed-off-by: Ondřej Budai --- test/data/ansible/check_ostree.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/data/ansible/check_ostree.yaml b/test/data/ansible/check_ostree.yaml index beba81609..349be380b 100644 --- a/test/data/ansible/check_ostree.yaml +++ b/test/data/ansible/check_ostree.yaml @@ -1016,7 +1016,7 @@ - name: Check that 'custom.service' was overridden by drop-in assert: that: - - result_custom_service.status['DropInPaths'] == "/etc/systemd/system/custom.service.d/override.conf" + - "'/etc/systemd/system/custom.service.d/override.conf' in result_custom_service.status['DropInPaths']" fail_msg: "Service 'custom.service' was not overridden by drop-in" success_msg: "Service 'custom.service' was overridden by drop-in"