defmain()->int:"""Run the distributed smoke test via the scheduler or ``mpirun`` fallback."""command=_build_test_command(sys.argv[1:])scheduler=get_scheduler().lower()ifschedulerin{"pbs","slurm"}:cmd_str=" ".join(shlex.quote(part)forpartincommand)returnlaunch(cmd_to_launch=cmd_str)fallback_cmd=["mpirun","-np","2",*command]result=subprocess.run(fallback_cmd,check=False)returnresult.returncode