File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,18 @@ if (process.argv.includes("-all")) {
3636}
3737
3838async function runTests ( ) {
39+ if ( formatTest ) {
40+ cp . execSync ( "npm run checkFormat:all" , {
41+ cwd : path . join ( __dirname , ".." ) ,
42+ stdio : [ 0 , 1 , 2 ] ,
43+ } ) ;
44+
45+ cp . execSync ( "bash scripts/check_format.sh" , {
46+ cwd : path . join ( __dirname , ".." ) ,
47+ stdio : [ 0 , 1 , 2 ] ,
48+ } ) ;
49+ }
50+
3951 if ( ounitTest ) {
4052 cp . execSync ( path . join ( duneBinDir , "ounit_tests" ) , {
4153 stdio : [ 0 , 1 , 2 ] ,
@@ -84,18 +96,6 @@ async function runTests() {
8496 process . exit ( 1 ) ;
8597 }
8698 }
87-
88- if ( formatTest ) {
89- cp . execSync ( "npm run checkFormat" , {
90- cwd : path . join ( __dirname , ".." ) ,
91- stdio : [ 0 , 1 , 2 ] ,
92- } ) ;
93-
94- cp . execSync ( "bash scripts/check_format.sh" , {
95- cwd : path . join ( __dirname , ".." ) ,
96- stdio : [ 0 , 1 , 2 ] ,
97- } ) ;
98- }
9999}
100100
101101runTests ( ) ;
You can’t perform that action at this time.
0 commit comments