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 @@ -127,8 +127,7 @@ console.timeEnd('CHR');
127127
128128const { spawnSync } = require ( 'child_process' ) ;
129129
130- function exec ( cmd ) {
131- const [ exe , ...args ] = cmd . split ( ' ' ) ;
130+ function execArgs ( exe , args ) {
132131 const output = spawnSync ( exe , args ) . output . flatMap (
133132 ( d ) => d ?. toString ( ) || [ ] ,
134133 ) ;
@@ -138,6 +137,11 @@ function exec(cmd) {
138137 }
139138}
140139
140+ function exec ( cmd ) {
141+ const [ exe , ...args ] = cmd . split ( ' ' ) ;
142+ execArgs ( exe , args )
143+ }
144+
141145const ca65bin = nativeCC65 ? 'ca65' : 'node ./tools/assemble/ca65.js' ;
142146const flags = compileFlags . join ( ' ' ) ;
143147
@@ -208,5 +212,5 @@ if (args.includes('-t')) {
208212if ( args . includes ( '-T' ) ) {
209213 const singleTest = args [ 1 + args . indexOf ( '-T' ) ] ;
210214 console . log ( `\nrunning single test: ${ singleTest } ` ) ;
211- exec ( ` cargo run --release --manifest-path tests/Cargo.toml -- -T ${ singleTest } ` ) ;
215+ execArgs ( ' cargo' , [ ... ' run --release --manifest-path tests/Cargo.toml -- -T' . split ( ' ' ) , singleTest ] ) ;
212216}
You can’t perform that action at this time.
0 commit comments