Skip to content

Commit 4cbe14b

Browse files
committed
Mark check_linux_kernel_is_readable as xfail on Ubuntu 22.04
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 43b468d commit 4cbe14b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/extractcode/vmimage.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
import logging
1111
import os
1212
import pathlib
13+
import platform
1314
import shutil
1415
import warnings
1516

1617
import attr
18+
import pytest
1719

1820
from commoncode import fileutils
1921
from commoncode.system import on_linux
@@ -74,6 +76,11 @@ def get_command(env_var=EXTRACTCODE_GUESTFISH_PATH_ENVVAR, command='guestfish'):
7476
return cmd_loc
7577

7678

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')
7784
def check_linux_kernel_is_readable():
7885
"""
7986
Return True if the kernel executable file can be read. This is required by

0 commit comments

Comments
 (0)