diff --git a/test/mod/test_util_mnt.py b/test/mod/test_util_mnt.py index 51038774..259ac026 100644 --- a/test/mod/test_util_mnt.py +++ b/test/mod/test_util_mnt.py @@ -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))