Skip to content

Commit 0f2d7ec

Browse files
committed
skip image checksum test for system images
1 parent 80694ee commit 0f2d7ec

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

bun.lockb

-1.12 KB
Binary file not shown.

src/utils/manifest.test.js

+15-6
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,21 @@ for (const [branch, manifestUrl] of Object.entries(config.manifests)) {
3434
expect(image.archiveUrl, 'archive url to be in xz format').toContain('.xz')
3535
})
3636

37+
3738
if (image.name === 'system') {
38-
test('alt image', () => {
39-
expect(image.sparse, 'system image to be sparse').toBe(true)
40-
expect(image.fileName, 'system image to be skip chunks').toContain('-skip-chunks-')
41-
expect(image.archiveUrl, 'system image to point to skip chunks').toContain('-skip-chunks-')
42-
})
39+
if (image.sparse) {
40+
// test pre AGNOS 11 assumptions
41+
test('pre-AGNOS 11 image (alt image)', () => {
42+
expect(image.fileName, 'system image to be skip chunks').toContain('-skip-chunks-')
43+
expect(image.archiveUrl, 'system image to point to skip chunks').toContain('-skip-chunks-')
44+
})
45+
} else {
46+
// test post AGNOS 11 assumptions
47+
test('AGNOS 11 image', () => {
48+
expect(image.fileName, 'system image to not be skip chunks').not.toContain('-skip-chunks-')
49+
expect(image.archiveUrl, 'system image to not point to skip chunks').not.toContain('-skip-chunks-')
50+
})
51+
}
4352
}
4453

4554
test('image and checksum', async () => {
@@ -70,7 +79,7 @@ for (const [branch, manifestUrl] of Object.entries(config.manifests)) {
7079

7180
await imageWorker.unpackImage(image)
7281
}, 8 * 60 * 1000)
73-
})
82+
}, { skip: image.name === 'system' })
7483
}
7584
})
7685
}

0 commit comments

Comments
 (0)