We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b468d commit 4cbe14bCopy full SHA for 4cbe14b
1 file changed
src/extractcode/vmimage.py
@@ -10,10 +10,12 @@
10
import logging
11
import os
12
import pathlib
13
+import platform
14
import shutil
15
import warnings
16
17
import attr
18
+import pytest
19
20
from commoncode import fileutils
21
from commoncode.system import on_linux
@@ -74,6 +76,11 @@ def get_command(env_var=EXTRACTCODE_GUESTFISH_PATH_ENVVAR, command='guestfish'):
74
76
return cmd_loc
75
77
78
79
+freedesktop_os_release = platform.freedesktop_os_release()
80
+is_ubuntu_2204 = freedesktop_os_release['ID'] == 'ubuntu' and freedesktop_os_release['VERSION_ID'] == '22.04'
81
+
82
83
+@pytest.mark.xfail(is_ubuntu_2204, reason='Kernel is not readable on Ubuntu 22.04')
84
def check_linux_kernel_is_readable():
85
"""
86
Return True if the kernel executable file can be read. This is required by
0 commit comments