From 31af1c8770c7dac9e9686a0549af329abe5a795b Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Thu, 21 Oct 2021 13:08:56 +0200 Subject: [PATCH] Chore: fix counting of files in performance test (#15190) --- Makefile.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.js b/Makefile.js index eb0b082e9a4..61f034ad6fb 100644 --- a/Makefile.js +++ b/Makefile.js @@ -1100,9 +1100,12 @@ target.perf = function() { // Count test target files. const count = glob.sync( - process.platform === "win32" - ? PERF_MULTIFILES_TARGETS.slice(2).replace(/\\/gu, "/") - : PERF_MULTIFILES_TARGETS + ( + process.platform === "win32" + ? PERF_MULTIFILES_TARGETS.replace(/\\/gu, "/") + : PERF_MULTIFILES_TARGETS + ) + .slice(1, -1) // strip quotes ).length; runPerformanceTest(