File tree Expand file tree Collapse file tree 1 file changed +30
-7
lines changed
Expand file tree Collapse file tree 1 file changed +30
-7
lines changed Original file line number Diff line number Diff line change 148148 </td >
149149 <td class =" text-center" width =" 15%" >
150150 <q-chip
151- :color =" log.success ? 'green' : 'negative'"
151+ :color ="
152+ log.skipped ? 'warning' : log.success ? 'green' : 'negative'
153+ "
152154 text-color =" white"
153155 dense
154156 class =" text-weight-bolder text-capitalize"
155157 square
156158 >
157- {{ log.success ? 'done' : 'failed' }}
159+ {{
160+ log.skipped
161+ ? 'skipped' // If skipped
162+ : log.success
163+ ? 'done'
164+ : 'failed'
165+ }}
158166 </q-chip >
159167 </td >
160168 </tr >
296304 .filter ((opt ) => test .alts_response .result [opt])
297305 .forEach ((opt ) => {
298306 let res = {}
307+ if (test .alts_response .result .skipped_tests .length ) {
308+ res = {
309+ skipped: true ,
310+ name: ' Skipped test' ,
311+ short_name:
312+ test .alts_response .result .skipped_tests .shift (),
313+ }
314+ parsed_test .result .push (res)
315+ }
299316 if ([' tests' , ' third_party' ].includes (opt)) {
300317 for (const item in test .alts_response .result [opt]) {
301318 res = {
360377 }
361378 },
362379 onView (log ) {
363- let logUrl = ` ${ window .origin } /pulp/content/test_logs/build-${ this .buildId } -test_log/${ log .name } `
364- this .selectedLog = log .name
365- axios .get (logUrl).then ((response ) => {
366- this .logText = response .data
380+ if (log .name === ' Skipped test' ) {
381+ this .logText =
382+ ' This test was specified to be skipped specifically for this project and platform'
367383 this .$refs .openLogView .open ()
368- })
384+ } else {
385+ let logUrl = ` ${ window .origin } /pulp/content/test_logs/build-${ this .buildId } -test_log/${ log .name } `
386+ this .selectedLog = log .name
387+ axios .get (logUrl).then ((response ) => {
388+ this .logText = response .data ;
389+ this .$refs .openLogView .open ();
390+ })
391+ }
369392 },
370393 },
371394 components: {
You can’t perform that action at this time.
0 commit comments