Allow running multiple languages at once

This commit is contained in:
Radon Rosborough 2020-07-30 11:07:36 -06:00
parent 56f4086449
commit 3488cffaec
1 changed files with 7 additions and 2 deletions

View File

@ -550,8 +550,13 @@ async function main() {
let tests = getTestList();
const args = process.argv.slice(2);
for (const arg of args) {
tests = tests.filter(({ lang, test }) =>
[lang, test].concat(langs[lang].aliases || []).includes(arg)
tests = tests.filter(
({ lang, test }) =>
arg
.split(",")
.filter((arg) =>
[lang, test].concat(langs[lang].aliases || []).includes(arg)
).length > 0
);
}
if (tests.length === 0) {