build: Fix OpenMPI and MPICH arguments for CI via ns3

This commit is contained in:
Gabriel Ferreira
2025-05-07 11:21:10 +02:00
parent 3a930cd85c
commit 3db8c759ca

6
ns3
View File

@@ -1506,7 +1506,11 @@ def run_step(args, target_to_run, target_args):
if target_to_run in ["mpiexec", "mpirun"] and os.getenv("MPI_CI"):
if shutil.which("ompi_info"):
target_args = ["--oversubscribe"] + target_args
target_args = ["--allow-run-as-root"] + target_args
try:
subprocess.check_call([target_to_run, "--allow-run-as-root", "dir"])
target_args = ["--allow-run-as-root"] + target_args
except subprocess.CalledProcessError:
pass
program_arguments = [*debugging_software, target_to_run, *target_args]