File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import logging
1111import os
1212import pathlib
13+ import platform
1314import shutil
1415import warnings
1516
1617import attr
18+ import pytest
1719
1820from commoncode import fileutils
1921from commoncode .system import on_linux
@@ -74,6 +76,13 @@ def get_command(env_var=EXTRACTCODE_GUESTFISH_PATH_ENVVAR, command='guestfish'):
7476 return cmd_loc
7577
7678
79+ is_ubuntu_2204 = False
80+ if on_linux :
81+ freedesktop_os_release = platform .freedesktop_os_release ()
82+ is_ubuntu_2204 = freedesktop_os_release ['ID' ] == 'ubuntu' and freedesktop_os_release ['VERSION_ID' ] == '22.04'
83+
84+
85+ @pytest .mark .xfail (is_ubuntu_2204 , reason = 'Kernel is not readable on Ubuntu 22.04' )
7786def check_linux_kernel_is_readable ():
7887 """
7988 Return True if the kernel executable file can be read. This is required by
You can’t perform that action at this time.
0 commit comments