Skip to content

Commit

Permalink
Chore: fix counting of files in performance test (#15190)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Oct 21, 2021
1 parent 1b87fa8 commit 31af1c8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile.js
Expand Up @@ -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(
Expand Down

0 comments on commit 31af1c8

Please sign in to comment.