Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/reusable-emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 9 additions & 1 deletion Platforms/emscripten/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions Platforms/emscripten/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading