Skip to content

Commit

Permalink
Merge pull request avocado-framework#5942 from richtja/import_packagi…
Browse files Browse the repository at this point in the history
…ng_fix

Signed-off-by: Jan Richter <[email protected]>
  • Loading branch information
richtja authored May 30, 2024
2 parents fb418c3 + df6b1da commit 60b0ffc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avocado/utils/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import shutil
import tempfile

from pkg_resources import packaging
from packaging.version import parse

from avocado.utils import archive, asset, build, distro, process

Expand Down Expand Up @@ -207,6 +207,6 @@ def check_version(version):
:type version: string
:param version: version to be compared with current kernel version
"""
os_version = packaging.version.parse(os.uname()[2])
version = packaging.version.parse(version)
os_version = parse(os.uname()[2])
version = parse(version)
assert os_version > version, "Old kernel"

0 comments on commit 60b0ffc

Please sign in to comment.