Skip to content

Commit b2bf13a

Browse files
committed
Revert check for Ubuntu 22.04
* freedesktop_os_release() doesn't exist for all Pythons Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 30becb2 commit b2bf13a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/extractcode/vmimage.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010
import logging
1111
import os
1212
import pathlib
13-
import platform
1413
import shutil
1514
import warnings
1615

1716
import attr
18-
import pytest
1917

2018
from commoncode import fileutils
2119
from commoncode.system import on_linux
@@ -76,13 +74,6 @@ def get_command(env_var=EXTRACTCODE_GUESTFISH_PATH_ENVVAR, command='guestfish'):
7674
return cmd_loc
7775

7876

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

0 commit comments

Comments
 (0)