mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-22 09:57:41 +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:
parent
cc7086aa67
commit
39ec5d22a6
@ -1416,6 +1416,9 @@ def _configure_mysql(system, revision, features):
|
|||||||
execute('sudo mkdir -p {}'.format(cert_dir))
|
execute('sudo mkdir -p {}'.format(cert_dir))
|
||||||
# Parent dir of hammer.py.
|
# Parent dir of hammer.py.
|
||||||
p = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0])))
|
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 [
|
for file in [
|
||||||
f'{p}/src/lib/asiolink/testutils/ca/kea-ca.crt',
|
f'{p}/src/lib/asiolink/testutils/ca/kea-ca.crt',
|
||||||
f'{p}/src/lib/asiolink/testutils/ca/kea-client.crt',
|
f'{p}/src/lib/asiolink/testutils/ca/kea-client.crt',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user