File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,14 @@ export function test(
112
112
( error , stdout , stderr ) => {
113
113
if ( error ) {
114
114
if ( execOptions . ignoreStdErr !== true ) console . error ( stderr )
115
+ if ( only || debug ) {
116
+ console . error ( stdout )
117
+ }
115
118
reject ( error )
116
119
} else {
120
+ if ( only || debug ) {
121
+ console . log ( stdout . toString ( ) + '\n\n' + stderr . toString ( ) )
122
+ }
117
123
resolve ( stdout . toString ( ) + '\n\n' + stderr . toString ( ) )
118
124
}
119
125
} ,
@@ -187,14 +193,14 @@ export function test(
187
193
188
194
child . stdout . on ( 'data' , ( result ) => {
189
195
let content = result . toString ( )
190
- if ( debug ) console . log ( content )
196
+ if ( debug || only ) console . log ( content )
191
197
combined . push ( [ 'stdout' , content ] )
192
198
stdoutMessages . push ( content )
193
199
notifyNext ( stdoutActors , stdoutMessages )
194
200
} )
195
201
child . stderr . on ( 'data' , ( result ) => {
196
202
let content = result . toString ( )
197
- if ( debug ) console . error ( content )
203
+ if ( debug || only ) console . error ( content )
198
204
combined . push ( [ 'stderr' , content ] )
199
205
stderrMessages . push ( content )
200
206
notifyNext ( stderrActors , stderrMessages )
You can’t perform that action at this time.
0 commit comments