A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nodejs/node/commit/58cb0dd8a6 below:

use `PYTHON` executable from env in `assertSnapshot` · nodejs/node@58cb0dd · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+5

-2

lines changed Original file line number Diff line number Diff line change

@@ -78,8 +78,11 @@ async function spawnAndAssert(filename, transform = (x) => x, { tty = false, ...

78 78

return;

79 79

}

80 80

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];

83 86

const { stdout, stderr } = await common.spawnPromisified(executable, args, options);

84 87

await assertSnapshot(transform(`${stdout}${stderr}`), filename);

85 88

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4