Skip to content

Commit 9d8ce88

Browse files
committed
fix spaces in tests
1 parent 335e09d commit 9d8ce88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,15 @@ console.log();
204204

205205
console.timeEnd('build');
206206

207+
// tests
208+
207209
if (args.includes('-t')) {
208210
console.log('\nrunning tests');
209211
exec('cargo run --release --manifest-path tests/Cargo.toml -- -t');
210212
}
211213

212214
if (args.includes('-T')) {
213-
const singleTest = args[1+args.indexOf('-T')];
215+
const singleTest = args.slice(1+args.indexOf('-T')).join(' ');
214216
console.log(`\nrunning single test: ${singleTest}`);
215217
execArgs('cargo', [...'run --release --manifest-path tests/Cargo.toml -- -T'.split(' '), singleTest]);
216218
}

0 commit comments

Comments
 (0)