Skip to content

Commit

Permalink
debugging test path
Browse files Browse the repository at this point in the history
  • Loading branch information
plavin committed Sep 24, 2024
1 parent 520a475 commit 25b6707
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/sst/elements/ariel/tests/testsuite_default_Ariel.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def _setup_ariel_test_files(self):
# Add the API directory to LD_LIBRARY_PATH
# It is set in the Makefile but we set it here as well
# to support out-of-source builds
ArielApiDir = "{0}/api".format(self.ArielElementDir)
#ArielApiDir = "{0}/api".format(self.ArielElementDir)
ArielApiDir = "{0}/../api".format(test_path)
current_ld_library_path = os.environ.get("LD_LIBRARY_PATH", "")

if current_ld_library_path != "":
Expand All @@ -189,6 +190,13 @@ def _setup_ariel_test_files(self):

os.environ["LD_LIBRARY_PATH"] = new_ld_library_path

log_debug("LD_LIBRARY_PATH is now {0}".format(os.environ["LD_LIBRARY_PATH"]))

rtnX = OSCommand("ls", set_cwd=ArielApiDir).run()
log_debug("Contents of {0} directory:\n{1}".format(ArielApiDir,rtnX.output()))

log_debug("LD_LIBRARY_PATH is now {0}".format(os.environ["LD_LIBRARY_PATH"]))

# Now build the Ariel stream example
cmd = "make"
rtn1 = OSCommand(cmd, set_cwd=self.ArielElementStreamDir).run()
Expand Down

0 comments on commit 25b6707

Please sign in to comment.