@@ -81,7 +81,7 @@ function errorLog(...args) {
8181 console . error ( __filename , elapsedTimeStr ( ) , ...args ) ;
8282}
8383
84- debugLog ( ' command-line arguments:' , process . argv ) ;
84+ debugLog ( ` command-line arguments: ${ process . argv . join ( ' ' ) } ` ) ;
8585
8686const LOGDIR = process . env . CI ? process . env . HOME : '/tmp' ;
8787// Maps the packages where we should not run `test:all` and instead isolate the cross-browser tests.
@@ -134,7 +134,7 @@ const argv = yargs.options({
134134 }
135135
136136 const yarnArgs = [ '--cwd' , dir , scriptName ] ;
137- debugLog ( `spawning '${ name } ' process:` , ' yarn' , yarnArgs ) ;
137+ debugLog ( `spawning '${ name } ' process: yarn ${ yarnArgs . join ( ' ' ) } ` ) ;
138138 const testProcess = spawn ( 'yarn' , yarnArgs ) ;
139139
140140 testProcess . childProcess . stdout . on ( 'data' , data => {
@@ -145,18 +145,20 @@ const argv = yargs.options({
145145 } ) ;
146146
147147 await testProcess ;
148- debugLog ( `${ name } process completed successfully:` , 'yarn' , yarnArgs ) ;
148+ debugLog (
149+ `'${ name } ' process completed successfully: yarn ${ yarnArgs . join ( ' ' ) } `
150+ ) ;
149151 writeLogs ( 'Success' , name , stdout + '\n' + stderr ) ;
150152 } catch ( e ) {
151153 errorLog ( `${ name } process FAILED` ) ;
152- debugLog ( `${ name } process ==== STDOUT BEGIN ====` ) ;
154+ errorLog ( `${ name } process ==== STDOUT BEGIN ====` ) ;
153155 console . log ( stdout ) ;
154- debugLog ( `${ name } process ==== STDOUT END ====` ) ;
155- debugLog ( `${ name } process ==== STDERR BEGIN ====` ) ;
156+ errorLog ( `${ name } process ==== STDOUT END ====` ) ;
157+ errorLog ( `${ name } process ==== STDERR BEGIN ====` ) ;
156158 console . error ( stderr ) ;
157- debugLog ( `${ name } process ==== STDERR END ====` ) ;
159+ errorLog ( `${ name } process ==== STDERR END ====` ) ;
158160 writeLogs ( 'Failure' , name , stdout + '\n' + stderr ) ;
159- debugLog ( 'Completing with failure exit code 76' ) ;
161+ errorLog ( 'Completing with failure exit code 76' ) ;
160162 process . exit ( 76 ) ;
161163 }
162164} ) ( ) ;
0 commit comments