From 500fea92cc082c7ddff31a256aa2c9a59e931f0b Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 15 Apr 2015 15:00:14 -0500 Subject: [PATCH] Make sure MPI_DIR and PETSC_DIR are passed when running CMake from run_tests.py --- tests/run_tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run_tests.py b/tests/run_tests.py index 531225d9ad..42fb846d88 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -179,6 +179,10 @@ class Test(object): # Runs cmake when in non-script mode def run_cmake(self): os.environ['FC'] = self.fc + if self.petsc: + os.environ['PETSC_DIR'] = PETSC_DIR + if self.mpi: + os.environ['MPI_DIR'] = MPI_DIR build_opts = self.build_opts.split() self.cmake += build_opts rc = call(self.cmake)