mirror of
https://github.com/python/cpython.git
synced 2026-04-13 23:31:02 +00:00
gh-146197: Run -m test.pythoninfo on the Emscripten CI (#146332)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
0c83e8bed8
commit
a57209eb98
3 changed files with 14 additions and 1 deletions
2
.github/workflows/reusable-emscripten.yml
vendored
2
.github/workflows/reusable-emscripten.yml
vendored
|
|
@ -68,5 +68,7 @@ jobs:
|
|||
run: python3 Platforms/emscripten configure-host --host-runner node -- --config-cache
|
||||
- name: "Make host Python"
|
||||
run: python3 Platforms/emscripten make-host
|
||||
- name: "Display build info"
|
||||
run: python3 Platforms/emscripten run --pythoninfo
|
||||
- name: "Test"
|
||||
run: python3 Platforms/emscripten run --test
|
||||
|
|
|
|||
|
|
@ -591,6 +591,8 @@ def run_emscripten_python(context):
|
|||
|
||||
if context.test:
|
||||
args = load_config_toml()["test-args"] + args
|
||||
elif context.pythoninfo:
|
||||
args = load_config_toml()["pythoninfo-args"] + args
|
||||
|
||||
os.execv(str(exec_script), [str(exec_script), *args])
|
||||
|
||||
|
|
@ -722,10 +724,16 @@ def main():
|
|||
action="store_true",
|
||||
default=False,
|
||||
help=(
|
||||
"If passed, will add the default test arguments to the beginning of the command. "
|
||||
"Add the default test arguments to the beginning of the command. "
|
||||
"Default arguments loaded from Platforms/emscripten/config.toml"
|
||||
),
|
||||
)
|
||||
run.add_argument(
|
||||
"--pythoninfo",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="Run -m test.pythoninfo",
|
||||
)
|
||||
run.add_argument(
|
||||
"args",
|
||||
nargs=argparse.REMAINDER,
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ test-args = [
|
|||
"--single-process",
|
||||
"-W",
|
||||
]
|
||||
pythoninfo-args = [
|
||||
"-m", "test.pythoninfo",
|
||||
]
|
||||
|
||||
[dependencies.libffi]
|
||||
url = "https://github.com/libffi/libffi/releases/download/v{version}/libffi-{version}.tar.gz"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue