test/check_ostree: fix check of custom systemd unit override

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 <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2023-06-08 11:52:53 +02:00 committed by Achilleas Koutsou
parent a4719c6b3b
commit feaa093ef0

View file

@ -1016,7 +1016,7 @@
- name: Check that 'custom.service' was overridden by drop-in - name: Check that 'custom.service' was overridden by drop-in
assert: assert:
that: 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" fail_msg: "Service 'custom.service' was not overridden by drop-in"
success_msg: "Service 'custom.service' was overridden by drop-in" success_msg: "Service 'custom.service' was overridden by drop-in"