Allow running multiple languages at once
This commit is contained in:
		
							parent
							
								
									56f4086449
								
							
						
					
					
						commit
						3488cffaec
					
				| 
						 | 
					@ -550,8 +550,13 @@ async function main() {
 | 
				
			||||||
  let tests = getTestList();
 | 
					  let tests = getTestList();
 | 
				
			||||||
  const args = process.argv.slice(2);
 | 
					  const args = process.argv.slice(2);
 | 
				
			||||||
  for (const arg of args) {
 | 
					  for (const arg of args) {
 | 
				
			||||||
    tests = tests.filter(({ lang, test }) =>
 | 
					    tests = tests.filter(
 | 
				
			||||||
 | 
					      ({ lang, test }) =>
 | 
				
			||||||
 | 
					        arg
 | 
				
			||||||
 | 
					          .split(",")
 | 
				
			||||||
 | 
					          .filter((arg) =>
 | 
				
			||||||
            [lang, test].concat(langs[lang].aliases || []).includes(arg)
 | 
					            [lang, test].concat(langs[lang].aliases || []).includes(arg)
 | 
				
			||||||
 | 
					          ).length > 0
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  if (tests.length === 0) {
 | 
					  if (tests.length === 0) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue