From 994faf4036a3d2a3c3494aac857d154557bd7c52 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Fri, 22 Nov 2024 10:53:55 +0100 Subject: [PATCH] fix(pkg/driverbuilder): fixed ubuntu related tests. Signed-off-by: Federico Di Pierro --- pkg/driverbuilder/builder/ubuntu_test.go | 46 ++++++++++++------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/pkg/driverbuilder/builder/ubuntu_test.go b/pkg/driverbuilder/builder/ubuntu_test.go index 3a236593..d134dda0 100644 --- a/pkg/driverbuilder/builder/ubuntu_test.go +++ b/pkg/driverbuilder/builder/ubuntu_test.go @@ -160,16 +160,16 @@ var tests = []struct { }, { config: kernelrelease.KernelRelease{ - Fullversion: "6.5.0", + Fullversion: "6.8.0", Version: semver.Version{ Major: 6, - Minor: 5, + Minor: 8, Patch: 0, }, - Extraversion: "9", - FullExtraversion: "-9", + Extraversion: "48", + FullExtraversion: "-48", Architecture: kernelrelease.ArchitectureAmd64, - KernelVersion: "9", + KernelVersion: "48", }, expected: struct { headersURLs []string @@ -180,31 +180,31 @@ var tests = []struct { err error }{ headersURLs: []string{ - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48-generic_6.8.0-48.48_amd64.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48_6.8.0-48.48_all.deb", }, urls: []string{ - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_amd64_all.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-generic-headers-6.5.0-9_6.5.0-9.9_all.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_amd64.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_all.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9_6.5.0-9.9_amd64_all.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-generic-headers-6.5.0-9_6.5.0-9.9_all.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9_6.5.0-9.9_amd64.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9_6.5.0-9.9_all.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-9_6.5.0-9.9_amd64_all.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-generic-headers-6.5.0-9_6.5.0-9.9_all.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-9_6.5.0-9.9_amd64.deb", - "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.5/linux-headers-6.5.0-9_6.5.0-9.9_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48_6.8.0-48.48_amd64_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48-generic_6.8.0-48.48_amd64.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-generic-headers-6.8.0-48_6.8.0-48.48_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48_6.8.0-48.48_amd64.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48_6.8.0-48.48_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.8.0-48_6.8.0-48.48_amd64_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.8.0-48-generic_6.8.0-48.48_amd64.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-generic-headers-6.8.0-48_6.8.0-48.48_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.8.0-48_6.8.0-48.48_amd64.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.8.0-48_6.8.0-48.48_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.8/linux-headers-6.8.0-48_6.8.0-48.48_amd64_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.8/linux-headers-6.8.0-48-generic_6.8.0-48.48_amd64.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.8/linux-generic-headers-6.8.0-48_6.8.0-48.48_all.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.8/linux-headers-6.8.0-48_6.8.0-48.48_amd64.deb", + "https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic-6.8/linux-headers-6.8.0-48_6.8.0-48.48_all.deb", }, gccVersion: semver.Version{ Major: 6, Minor: 3, }, - firstExtra: "9", + firstExtra: "48", flavor: "generic", err: nil, },