From 682d2e3f78b51f1a2b0e293250bcdfa360a0e7d6 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Mon, 2 May 2022 07:49:13 +0200 Subject: [PATCH] build: allow script/spec-runner.js with empty list of runners (#33982) --- script/spec-runner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/spec-runner.js b/script/spec-runner.js index 31162d32a76e..11502c2da0c2 100755 --- a/script/spec-runner.js +++ b/script/spec-runner.js @@ -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);