@@ -34,12 +34,21 @@ for (const [branch, manifestUrl] of Object.entries(config.manifests)) {
34
34
expect ( image . archiveUrl , 'archive url to be in xz format' ) . toContain ( '.xz' )
35
35
} )
36
36
37
+
37
38
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
+ }
43
52
}
44
53
45
54
test ( 'image and checksum' , async ( ) => {
@@ -70,7 +79,7 @@ for (const [branch, manifestUrl] of Object.entries(config.manifests)) {
70
79
71
80
await imageWorker . unpackImage ( image )
72
81
} , 8 * 60 * 1000 )
73
- } )
82
+ } , { skip : image . name === 'system' } )
74
83
}
75
84
} )
76
85
}
0 commit comments