Skip to content

Commit f977ac8

Browse files
authored
skip image checksum test for system images (#76)
1 parent 80694ee commit f977ac8

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

bun.lockb

-1.12 KB
Binary file not shown.

src/utils/manifest.test.js

+11-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,17 @@ for (const [branch, manifestUrl] of Object.entries(config.manifests)) {
3535
})
3636

3737
if (image.name === 'system') {
38-
test('alt image', () => {
38+
const fileNameSkipChunks = image.fileName.includes('-skip-chunks-');
39+
const archiveUrlSkipChunks = image.archiveUrl.includes('-skip-chunks-');
40+
expect(fileNameSkipChunks, 'file name and archive url to match').toBe(archiveUrlSkipChunks);
41+
42+
if (fileNameSkipChunks || archiveUrlSkipChunks) {
43+
// pre AGNOS 11 assumption
3944
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-
})
45+
} else {
46+
// post AGNOS 11 assumption
47+
expect(image.sparse, 'system image to not be sparse').toBe(false)
48+
}
4349
}
4450

4551
test('image and checksum', async () => {
@@ -69,7 +75,7 @@ for (const [branch, manifestUrl] of Object.entries(config.manifests)) {
6975
const imageWorker = await getImageWorker()
7076

7177
await imageWorker.unpackImage(image)
72-
}, 8 * 60 * 1000)
78+
}, { skip: image.name === 'system', timeout: 5 * 1000 })
7379
})
7480
}
7581
})

0 commit comments

Comments
 (0)