From ac6c4f28bd767373063df6e1d88c58d36bc9650d Mon Sep 17 00:00:00 2001 From: Panos Syskakis Date: Mon, 30 Oct 2023 07:21:37 -0500 Subject: [PATCH] Fix test gasnet env variable --- cmake/HPX_AddTest.cmake | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmake/HPX_AddTest.cmake b/cmake/HPX_AddTest.cmake index 863c003fea9e..381947f2f0b6 100644 --- a/cmake/HPX_AddTest.cmake +++ b/cmake/HPX_AddTest.cmake @@ -91,14 +91,8 @@ function(add_hpx_test category name) set(Python_EXECUTABLE ${PYTHON_EXECUTABLE}) endif() - set(ENV_VAR "") - if(HPX_WITH_PARCELPORT_GASNET) - set(ENV_VAR "GASNET_PSHM_NODES=2") - endif() - # cmake-format: off set(cmd - ${ENV_VAR} "${Python_EXECUTABLE}" "${_script_location}/bin/hpxrun.py" ${CMAKE_CROSSCOMPILING_EMULATOR} @@ -179,7 +173,7 @@ function(add_hpx_test category name) add_test(NAME "${_full_name}" COMMAND ${cmd} "-p" "lci" "-r" "mpi" ${args} ) - set_tests_properties("${_full_name}" PROPERTIES RUN_SERIAL TRUE) + set_tests_properties("${_full_name}" PROPERTIES RUN_SERIAL TRUE ENVIRONMENT "GASNET_PSHM_NODES=2") if(${name}_TIMEOUT) set_tests_properties( "${_full_name}" PROPERTIES TIMEOUT ${${name}_TIMEOUT}