Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedb75ae

Browse files
aduh95marco-ippolito
authored andcommitted
test: usePYTHON executable from env inassertSnapshot
PR-URL:#53938Reviewed-By: Luigi Pinca <luigipinca@gmail.com>Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent89599e0 commitedb75ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎test/common/assertSnapshot.js

Lines 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
constflags=common.parseTestFlags(filename);
81-
constexecutable=tty ?path.join(__dirname,'../..','tools/pseudo-tty.py') :process.execPath;
82-
constargs=tty ?[process.execPath, ...flags,filename] :[...flags,filename];
81+
constexecutable=tty ?(process.env.PYTHON||'python3') :process.execPath;
82+
constargs=
83+
tty ?
84+
[path.join(__dirname,'../..','tools/pseudo-tty.py'),process.execPath, ...flags,filename] :
85+
[...flags,filename];
8386
const{ stdout, stderr}=awaitcommon.spawnPromisified(executable,args,options);
8487
awaitassertSnapshot(transform(`${stdout}${stderr}`),filename);
8588
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp