projects
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49b050e
)
test runner output fails on some cwd - fix regexp
author
Jérémy Lal
<kapouer@melix.org>
Sat, 22 Jun 2024 12:21:29 +0000
(15:21 +0300)
committer
Adrian Bunk
<bunk@debian.org>
Sat, 22 Jun 2024 12:21:29 +0000
(15:21 +0300)
Last-Update: 2023-11-30
Forwarded: https://github.com/nodejs/node/pull/50980
Gbp-Pq: Topic build
Gbp-Pq: Name test_runner_escape_path.patch
test/parallel/test-runner-output.mjs
patch
|
blob
|
history
diff --git
a/test/parallel/test-runner-output.mjs
b/test/parallel/test-runner-output.mjs
index 372ca8f3bae0ff6413be7b20e258a9336b2b4317..59d4cef33afc0b0d465fbd25b1a62373059a191a 100644
(file)
--- a/
test/parallel/test-runner-output.mjs
+++ b/
test/parallel/test-runner-output.mjs
@@
-15,7
+15,7
@@
function replaceTestDuration(str) {
}
const color = '(\\[\\d+m)';
-const stackTraceBasePath = new RegExp(`${color}\\(${process.cwd()}/?${color}(.*)${color}\\)`, 'g');
+const stackTraceBasePath = new RegExp(`${color}\\(${process.cwd()
.replace(/[\\^$*+?.()|[\]{}]/g, '\\$&')
}/?${color}(.*)${color}\\)`, 'g');
function replaceSpecDuration(str) {
return str