File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,10 @@ async function main(argv) {
8484 process . exit ( 1 ) ;
8585 }
8686
87+ // Print successful tests too
8788 let debug = false ;
89+ // Run tests in sequentially
90+ let no_headless = false ;
8891 const options = new Options ( ) ;
8992 try {
9093 // This is more convenient that setting fields one by one.
@@ -101,6 +104,7 @@ async function main(argv) {
101104 }
102105 if ( opts [ "no_headless" ] ) {
103106 args . push ( "--no-headless" ) ;
107+ no_headless = true ;
104108 }
105109 options . parseArguments ( args ) ;
106110 } catch ( error ) {
@@ -155,6 +159,9 @@ async function main(argv) {
155159 failed = true ;
156160 } )
157161 ) ;
162+ if ( no_headless ) {
163+ await tests [ i ] ;
164+ }
158165 }
159166 await Promise . all ( tests ) ;
160167 // final \n after the tests
@@ -187,9 +194,6 @@ async function main(argv) {
187194 case RUN_ERRORED :
188195 console . error ( r . output ) ;
189196 break ;
190- default :
191- console . error ( `unexpected status = ${ r . status } ` ) ;
192- process . exit ( 4 ) ;
193197 }
194198 } ) ;
195199
You can’t perform that action at this time.
0 commit comments