osbuild: fix error match in mount test for fc40

Similar to 4a51baf this fixes another issue in the mount error
checking where the error message changed.
This commit is contained in:
Michael Vogt 2024-04-26 07:15:22 +02:00 committed by Ondřej Budai
parent ed0239c808
commit a0d4dfa575

View file

@ -57,4 +57,4 @@ def test_osbuild_mount_failure_msg(tmp_path):
"options": [],
}
mnt_service.mount(args)
assert "special device /dev/invalid-src does not exist" in str(e.value)
assert re.search(r"special device /dev/invalid-src does not exist|Can't open blockdev.", str(e.value))