mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
chore: ensure python@3.11
is installed for WPT tests (#23195)
This provides a more thorough check of whether the correct Python version is installed for running WPT tests.
This commit is contained in:
parent
57572dafd5
commit
f76c38b13e
2 changed files with 3 additions and 2 deletions
|
@ -141,10 +141,10 @@ export async function checkPy3Available() {
|
||||||
assert(success, "failed to run python --version");
|
assert(success, "failed to run python --version");
|
||||||
const output = new TextDecoder().decode(stdout);
|
const output = new TextDecoder().decode(stdout);
|
||||||
assert(
|
assert(
|
||||||
output.includes("Python 3."),
|
output.includes("Python 3.11"),
|
||||||
`The ${
|
`The ${
|
||||||
Deno.build.os == "windows" ? "python.exe" : "python3"
|
Deno.build.os == "windows" ? "python.exe" : "python3"
|
||||||
} in your path is not Python 3.`,
|
} in your path is not Python 3.11.x. See https://github.com/web-platform-tests/wpt/issues/44427 for more details.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ switch (command) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "run":
|
case "run":
|
||||||
|
await checkPy3Available();
|
||||||
await cargoBuild();
|
await cargoBuild();
|
||||||
await run();
|
await run();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue