updated method for setting mpi for regression tests

This commit is contained in:
Kalin Kiesling 2022-04-06 09:28:02 -05:00
parent 20a18398bf
commit 4f6001d574

View file

@ -33,12 +33,14 @@ def cpp_driver(request):
os.chdir(str(local_builddir))
if config['mpi']:
os.environ['CXX'] = 'mpicxx'
mpi_arg = "On"
else:
mpi_arg = "Off"
try:
print("Building driver")
# Run cmake/make to build the shared libary
subprocess.run(['cmake', os.path.pardir], check=True)
subprocess.run(['cmake', os.path.pardir, '-DOPENMC_USE_MPI=' + mpi_arg], check=True)
subprocess.run(['make'], check=True)
os.chdir(os.path.pardir)