Skip to content

Commit f509f0f

Browse files
committed
Keep "run --pythoninfo" command for buildbots
1 parent e7f8e3a commit f509f0f

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Platforms/emscripten/__main__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ def run_emscripten_python(context):
611611

612612
if context.test:
613613
args = load_config_toml()["test-args"] + args
614+
elif context.pythoninfo:
615+
args = load_config_toml()["pythoninfo-args"] + args
614616

615617
os.execv(str(exec_script), [str(exec_script), *args])
616618

@@ -754,6 +756,12 @@ def main():
754756
"Default arguments loaded from Platforms/emscripten/config.toml"
755757
),
756758
)
759+
run.add_argument(
760+
"--pythoninfo",
761+
action="store_true",
762+
default=False,
763+
help="Run -m test.pythoninfo",
764+
)
757765
run.add_argument(
758766
"args",
759767
nargs=argparse.REMAINDER,

Platforms/emscripten/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ test-args = [
1111
"--single-process",
1212
"-W",
1313
]
14+
pythoninfo-args = [
15+
"-m", "test.pythoninfo",
16+
]
1417

1518
[dependencies.libffi]
1619
url = "https://github.com/libffi/libffi/releases/download/v{version}/libffi-{version}.tar.gz"

0 commit comments

Comments
 (0)