GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: use `PYTHON` executable from env in `assertSnapshot` · nodejs/node@edb75ae

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/common
    • assertSnapshot.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common/assertSnapshot.js‎

Copy file name to clipboardExpand all lines: test/common/assertSnapshot.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ async function spawnAndAssert(filename, transform = (x) => x, { tty = false, ...
7878
return;
7979
}
8080
const flags = common.parseTestFlags(filename);
81-
const executable = tty ? path.join(__dirname, '../..', 'tools/pseudo-tty.py') : process.execPath;
82-
const args = tty ? [process.execPath, ...flags, filename] : [...flags, filename];
81+
const executable = tty ? (process.env.PYTHON || 'python3') : process.execPath;
82+
const args =
83+
tty ?
84+
[path.join(__dirname, '../..', 'tools/pseudo-tty.py'), process.execPath, ...flags, filename] :
85+
[...flags, filename];
8386
const { stdout, stderr } = await common.spawnPromisified(executable, args, options);
8487
await assertSnapshot(transform(`${stdout}${stderr}`), filename);
8588
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.