update mpi setting in another regression test

This commit is contained in:
Kalin Kiesling 2022-04-06 09:32:38 -05:00
parent 4f6001d574
commit 4010b32cff

View file

@ -49,12 +49,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)