From a0d4dfa5753229482a0ce93f8c51047b94e44fa8 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 26 Apr 2024 07:15:22 +0200 Subject: [PATCH] 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. --- test/mod/test_util_mnt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))