From ec169609a818b1657deed849aecfb4506b27b134 Mon Sep 17 00:00:00 2001 From: Caleb Everett Date: Mon, 30 Sep 2024 09:33:57 -0700 Subject: [PATCH] test: fix async-context-frame tests with --shell Forward execPath as test.py --shell so subprocess tests run with the same executable as the parent test. Otherwise tests are broken if out/Debug/node doesn't exist or is a different executble than the caller intended. --- test/parallel/test-async-context-frame.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-async-context-frame.mjs b/test/parallel/test-async-context-frame.mjs index 87f0792702f9d5..da409753c45abd 100644 --- a/test/parallel/test-async-context-frame.mjs +++ b/test/parallel/test-async-context-frame.mjs @@ -49,6 +49,7 @@ describe('AsyncContextFrame', { it(test, async () => { const proc = spawn(python, [ testRunner, + '--shell', process.execPath, '--node-args=--experimental-async-context-frame', test, ], {