Skip to content

Commit e837088

Browse files
DAOS-17827 test: use correct gen_certificates.sh (#17129)
Use gen_certificates.sh relative to the set prefix, not ftest. Signed-off-by: Dalton Bohning <[email protected]>
1 parent 0ff9ca7 commit e837088

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/tests/ftest/util/launch_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,13 +869,12 @@ def _generate_certs(self, logger):
869869
logger.debug("Generating certificates")
870870
test_env = TestEnvironment()
871871
certs_dir = os.path.join(test_env.log_dir, "daosCA")
872-
certgen_dir = os.path.abspath(
873-
os.path.join("..", "..", "..", "..", "lib64", "daos", "certgen"))
874-
command = os.path.join(certgen_dir, "gen_certificates.sh")
875872
if not run_local(logger, f"/usr/bin/rm -rf {certs_dir}").passed:
876873
message = "Error removing old certificates"
877874
self.test_result.fail_test(logger, "Prepare", message, sys.exc_info())
878875
return False
876+
command = os.path.abspath(
877+
os.path.join(test_env.daos_prefix, "lib64", "daos", "certgen", "gen_certificates.sh"))
879878
if not run_local(logger, f"{command} {test_env.log_dir}").passed:
880879
message = "Error generating certificates"
881880
self.test_result.fail_test(logger, "Prepare", message, sys.exc_info())

0 commit comments

Comments
 (0)