From 2330da696809a3b93ef450fe86fa14291341da54 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 9 Jul 2018 09:43:29 +0100 Subject: [PATCH] Fix env passing throug mpiexec --- test/test_partition.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/test_partition.py b/test/test_partition.py index 78258f4f..8dd23997 100644 --- a/test/test_partition.py +++ b/test/test_partition.py @@ -531,13 +531,12 @@ def test_mpi_communication(num_partitions, order): num_ranks = num_partitions from subprocess import check_call import sys - newenv = os.environ.copy() - newenv["RUN_WITHIN_MPI"] = "1" - newenv["order"] = str(order) check_call([ - "mpiexec", "-np", str(num_ranks), "-x", "RUN_WITHIN_MPI", + "mpiexec", "-np", str(num_ranks), + "-x", "RUN_WITHIN_MPI=1", + "-x", "order=%d" % order, sys.executable, __file__], - env=newenv) + ) # }}} -- GitLab