+5
-2
lines changedFilter options
+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