Skip to content

Commit a1c5330

Browse files
FedeDPpoiana
authored andcommitted
fix(pkg/driverbuilder): fixed ubuntu related tests.
Signed-off-by: Federico Di Pierro <[email protected]>
1 parent 1279afd commit a1c5330

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

pkg/driverbuilder/builder/ubuntu_test.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,16 @@ var tests = []struct {
160160
},
161161
{
162162
config: kernelrelease.KernelRelease{
163-
Fullversion: "6.5.0",
163+
Fullversion: "6.8.0",
164164
Version: semver.Version{
165165
Major: 6,
166-
Minor: 5,
166+
Minor: 8,
167167
Patch: 0,
168168
},
169-
Extraversion: "9",
170-
FullExtraversion: "-9",
169+
Extraversion: "48",
170+
FullExtraversion: "-48",
171171
Architecture: kernelrelease.ArchitectureAmd64,
172-
KernelVersion: "9",
172+
KernelVersion: "48",
173173
},
174174
expected: struct {
175175
headersURLs []string
@@ -180,31 +180,31 @@ var tests = []struct {
180180
err error
181181
}{
182182
headersURLs: []string{
183-
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb",
184-
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_all.deb",
183+
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48-generic_6.8.0-48.48_amd64.deb",
184+
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48_6.8.0-48.48_all.deb",
185185
},
186186
urls: []string{
187-
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_amd64_all.deb",
188-
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9-generic_6.5.0-9.9_amd64.deb",
189-
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-generic-headers-6.5.0-9_6.5.0-9.9_all.deb",
190-
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_amd64.deb",
191-
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.5.0-9_6.5.0-9.9_all.deb",
192-
"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",
193-
"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",
194-
"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",
195-
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9_6.5.0-9.9_amd64.deb",
196-
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.5.0-9_6.5.0-9.9_all.deb",
197-
"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",
198-
"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",
199-
"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",
200-
"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",
201-
"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",
187+
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48_6.8.0-48.48_amd64_all.deb",
188+
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48-generic_6.8.0-48.48_amd64.deb",
189+
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-generic-headers-6.8.0-48_6.8.0-48.48_all.deb",
190+
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48_6.8.0-48.48_amd64.deb",
191+
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux/linux-headers-6.8.0-48_6.8.0-48.48_all.deb",
192+
"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",
193+
"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",
194+
"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",
195+
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.8.0-48_6.8.0-48.48_amd64.deb",
196+
"https://mirrors.edge.kernel.org/ubuntu/pool/main/l/linux-generic/linux-headers-6.8.0-48_6.8.0-48.48_all.deb",
197+
"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",
198+
"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",
199+
"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",
200+
"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",
201+
"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",
202202
},
203203
gccVersion: semver.Version{
204204
Major: 6,
205205
Minor: 3,
206206
},
207-
firstExtra: "9",
207+
firstExtra: "48",
208208
flavor: "generic",
209209
err: nil,
210210
},

0 commit comments

Comments
 (0)