mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: allow script/spec-runner.js with empty list of runners (#34002)
Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
@@ -41,8 +41,8 @@ const runners = new Map([
|
||||
const specHashPath = path.resolve(__dirname, '../spec/.hash');
|
||||
|
||||
let runnersToRun = null;
|
||||
if (args.runners) {
|
||||
runnersToRun = args.runners.split(',');
|
||||
if (args.runners !== undefined) {
|
||||
runnersToRun = args.runners.split(',').filter(value => value);
|
||||
if (!runnersToRun.every(r => [...runners.keys()].includes(r))) {
|
||||
console.log(`${fail} ${runnersToRun} must be a subset of [${[...runners.keys()].join(' | ')}]`);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user