@@ -50,6 +50,7 @@ const contextDirectory = path.resolve(__dirname, '..', 'resources');
50
50
const skipInstallation = process . env . SKIP_INSTALLATION ;
51
51
const buildISOImage = process . env . BUILD_ISO_IMAGE ;
52
52
let timeoutForBuild = 600000 ;
53
+ let imageBuildFailed = true ;
53
54
54
55
beforeEach < RunnerTestContext > ( async ctx => {
55
56
ctx . pdRunner = pdRunner ;
@@ -110,6 +111,7 @@ describe('BootC Extension', async () => {
110
111
'Bootc images for architecture: %s' ,
111
112
async architecture => {
112
113
test ( 'Build bootc image from containerfile' , async ( ) => {
114
+ imageBuildFailed = true ;
113
115
let imagesPage = await navBar . openImages ( ) ;
114
116
await playExpect ( imagesPage . heading ) . toBeVisible ( ) ;
115
117
@@ -121,13 +123,20 @@ describe('BootC Extension', async () => {
121
123
containerFilePath ,
122
124
contextDirectory ,
123
125
architecture ,
126
+ 180000 ,
124
127
) ;
125
128
126
129
await playExpect . poll ( async ( ) => await imagesPage . waitForImageExists ( imageName ) ) . toBeTruthy ( ) ;
127
- } , 150000 ) ;
130
+ imageBuildFailed = false ;
131
+ } , 210000 ) ;
128
132
129
133
describe . skipIf ( isLinux ) . each ( [ 'QCOW2' , 'AMI' , 'RAW' , 'VMDK' , 'ISO' ] ) ( 'Building images ' , async type => {
130
134
test ( `Building bootable image type: ${ type } ` , async context => {
135
+ if ( imageBuildFailed ) {
136
+ console . log ( 'Image build failed, skipping test' ) ;
137
+ context . skip ( ) ;
138
+ }
139
+
131
140
if ( type === 'ISO' ) {
132
141
if ( buildISOImage ) {
133
142
timeoutForBuild = 1200000 ;
0 commit comments