Skip to content

Commit a8746ff

Browse files
committed
chore: remove dead code from tests
kernels_unfiltered was not used anywhere (as evidenced to it still referring to no-sve kernels, which are gone since we dropped 4.14 host support). Signed-off-by: Patrick Roy <[email protected]>
1 parent b8ca08e commit a8746ff

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
import host_tools.cargo_build as build_tools
3737
from framework import defs, utils
38-
from framework.artifacts import kernel_params, kernels_unfiltered, rootfs_params
38+
from framework.artifacts import kernel_params, rootfs_params
3939
from framework.microvm import MicroVMFactory
4040
from framework.properties import global_props
4141
from framework.utils_cpu_templates import (

tests/framework/artifacts.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,6 @@ def kernels(glob) -> Iterator:
4545
break
4646

4747

48-
def kernels_unfiltered(glob) -> Iterator:
49-
"""Return kernels from the CI artifacts. This one does not filter for
50-
supported kernels. It will return any kernel in the CI artifacts folder
51-
that matches the 'glob'
52-
"""
53-
all_kernels = [r"vmlinux-\d.\d+.\d+", r"vmlinux-5.10-no-sve-bin"]
54-
for kernel in sorted(ARTIFACT_DIR.rglob(glob)):
55-
for kernel_regex in all_kernels:
56-
if re.fullmatch(kernel_regex, kernel.name):
57-
yield kernel
58-
break
59-
60-
6148
def disks(glob) -> Iterator:
6249
"""Return supported rootfs"""
6350
yield from sorted(ARTIFACT_DIR.glob(glob))

0 commit comments

Comments
 (0)