Expand Up
@@ -580,6 +580,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
@@ -703,10 +705,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