Skip to content

Commit

Permalink
fix mercury/mask-mpi test library paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkenny committed May 10, 2024
1 parent 0517182 commit 6a5e7a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
13 changes: 6 additions & 7 deletions src/sst/elements/mask-mpi/tests/testsuite_default_mask_mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ def tearDown(self):

#####

def test_testme(self):
def test_sendrecv(self):
testdir = self.get_testsuite_dir()

paths = os.environ.get("SST_LIB_PATH")
if paths is None:
os.environ["SST_LIB_PATH"] = testdir
libdir = sstsimulator_conf_get_value_str("SST_ELEMENT_LIBRARY","SST_ELEMENT_LIBRARY_LIBDIR")
path = os.environ.get("SST_LIB_PATH")
if path is None or path == "":
os.environ["SST_LIB_PATH"] = libdir
else:
os.environ["SST_LIB_PATH"] = paths + ":" + testdir

os.environ["SST_LIB_PATH"] = path + ":" + libdir
self.mask_mpi_template("test_sendrecv")

#####
Expand Down
11 changes: 5 additions & 6 deletions src/sst/elements/mercury/tests/testsuite_default_hg.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ def tearDown(self):

def test_testme(self):
testdir = self.get_testsuite_dir()

paths = os.environ.get("SST_LIB_PATH")
if paths is None:
os.environ["SST_LIB_PATH"] = testdir
libdir = sstsimulator_conf_get_value_str("SST_ELEMENT_LIBRARY","SST_ELEMENT_LIBRARY_LIBDIR")
path = os.environ.get("SST_LIB_PATH")
if path is None or path == "":
os.environ["SST_LIB_PATH"] = libdir
else:
os.environ["SST_LIB_PATH"] = paths + ":" + testdir

os.environ["SST_LIB_PATH"] = path + ":" + libdir
self.simple_components_template("ostest")

#####
Expand Down

0 comments on commit 6a5e7a1

Please sign in to comment.