@@ -9,6 +9,8 @@ const request = require("request"),
99 tableStream = require ( 'table' ) . createStream ,
1010 chalk = require ( 'chalk' ) ;
1111
12+ const { inspect } = require ( 'util' ) ;
13+
1214let whileLoop = true , whileTries = config . retries , options , timeout = 3000 , n = 2 , tableConfig , stream , endTime , startTime = Date . now ( ) , buildStarted = false ;
1315let specSummary = {
1416 "buildError" : null ,
@@ -190,14 +192,16 @@ let printInitialLog = () => {
190192}
191193
192194let printSpecData = ( data ) => {
195+ console . log ( `roshan1: the printSpecData ${ inspect ( data ) } ` )
193196 let combination = getCombinationName ( data [ "spec" ] ) ;
194- let status = getStatus ( data [ "spec" ] [ "status" ] ) ;
195- writeToTable ( combination , data [ "path" ] , status )
196- addSpecToSummary ( data [ "path" ] , data [ "spec" ] [ "status" ] , combination , data [ "session_id" ] )
197+ let status = data [ "spec" ] [ "status" ] ;
198+ let statusMark = getStatus ( status ) ;
199+ writeToTable ( combination , data [ "path" ] , status , statusMark )
200+ addSpecToSummary ( data [ "path" ] , status , combination , data [ "session_id" ] )
197201}
198202
199- let writeToTable = ( combination , specName , status ) => {
200- stream . write ( [ combination , ":" , `${ specName } ${ status } ` ] ) ;
203+ let writeToTable = ( combination , specName , status , statusMark ) => {
204+ stream . write ( [ combination , ":" , `${ specName } ${ statusMark } [ ${ status } ] ` ] ) ;
201205}
202206
203207let addSpecToSummary = ( specName , status , combination , session_id ) => {
@@ -220,6 +224,9 @@ let getStatus = (status) => {
220224 return chalk . green ( "✔" ) ;
221225 case "failed" :
222226 return chalk . red ( "✘" ) ;
227+ case "passed_with_pending" :
228+ case "passed_with_skipped" :
229+ return chalk . blueBright ( "✔" ) ;
223230 default :
224231 return chalk . blue ( `[${ status } ]` ) ;
225232 }
0 commit comments