2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#3812] Hammer: Make sure we account for the case when hammer is called on another Kea source tree when installing SSL keys

This commit is contained in:
Andrei Pavel
2025-04-23 13:15:24 +03:00
parent cc7086aa67
commit 39ec5d22a6

View File

@@ -1416,6 +1416,9 @@ def _configure_mysql(system, revision, features):
execute('sudo mkdir -p {}'.format(cert_dir))
# Parent dir of hammer.py.
p = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0])))
if not os.path.isdir(f'{p}/src/lib/asiolink/testutils/ca'):
# Sometimes we call a standalone hammer.py on another Kea source tree. Let's use cwd in that case.
p = '.'
for file in [
f'{p}/src/lib/asiolink/testutils/ca/kea-ca.crt',
f'{p}/src/lib/asiolink/testutils/ca/kea-client.crt',