From 732a959d9a1e392f32c7365ecf270ea08f585eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Tue, 8 Oct 2024 14:11:56 +0200 Subject: [PATCH] Simplify command invocation --- bin/tests/system/isctest/kasp.py | 3 +-- bin/tests/system/ksr/tests_ksr.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/tests/system/isctest/kasp.py b/bin/tests/system/isctest/kasp.py index 2160ce1e0d..9676fab92b 100644 --- a/bin/tests/system/isctest/kasp.py +++ b/bin/tests/system/isctest/kasp.py @@ -291,8 +291,7 @@ def check_dnssec_verify(server, zone): file.write(rr.to_text()) file.write("\n") - verify_command = [*os.environ.get("VERIFY").split(), "-z", "-o", zone, zonefile] - + verify_command = [os.environ.get("VERIFY"), "-z", "-o", zone, zonefile] isctest.run.cmd(verify_command) diff --git a/bin/tests/system/ksr/tests_ksr.py b/bin/tests/system/ksr/tests_ksr.py index fa61c3ef87..f8628fb31a 100644 --- a/bin/tests/system/ksr/tests_ksr.py +++ b/bin/tests/system/ksr/tests_ksr.py @@ -49,7 +49,7 @@ def keystr_to_keylist(keystr: str, keydir: Optional[str] = None) -> List[Key]: def keygen(zone, policy, keydir, when="now"): keygen_command = [ - *os.environ.get("KEYGEN").split(), + os.environ.get("KEYGEN"), "-l", "ns1/named.conf", "-fK", @@ -71,7 +71,7 @@ def keygen(zone, policy, keydir, when="now"): def ksr(zone, policy, action, options="", raise_on_exception=True): ksr_command = [ - *os.environ.get("KSR").split(), + os.environ.get("KSR"), "-l", "ns1/named.conf", "-k",