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');
127
127
128
128
const { spawnSync } = require ( 'child_process' ) ;
129
129
130
- function exec ( cmd ) {
131
- const [ exe , ...args ] = cmd . split ( ' ' ) ;
130
+ function execArgs ( exe , args ) {
132
131
const output = spawnSync ( exe , args ) . output . flatMap (
133
132
( d ) => d ?. toString ( ) || [ ] ,
134
133
) ;
@@ -138,6 +137,11 @@ function exec(cmd) {
138
137
}
139
138
}
140
139
140
+ function exec ( cmd ) {
141
+ const [ exe , ...args ] = cmd . split ( ' ' ) ;
142
+ execArgs ( exe , args )
143
+ }
144
+
141
145
const ca65bin = nativeCC65 ? 'ca65' : 'node ./tools/assemble/ca65.js' ;
142
146
const flags = compileFlags . join ( ' ' ) ;
143
147
@@ -208,5 +212,5 @@ if (args.includes('-t')) {
208
212
if ( args . includes ( '-T' ) ) {
209
213
const singleTest = args [ 1 + args . indexOf ( '-T' ) ] ;
210
214
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 ] ) ;
212
216
}
You can’t perform that action at this time.
0 commit comments