From e0684c0c343835c7674a94424d847592511915b0 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 9 Jul 2026 22:21:52 +0200 Subject: utils: T9008: migrate remaining cmd() callers to cmdl() and remove cmd() Complete the safer-subprocess migration started by the cmdl()/ifconfig refactoring and convert every remaining vyos.utils.process.cmd() call site to the list-based cmdl(). Drop the vyos.utils.process.cmd() implementation as it is no longer in use. --- src/tests/test_configverify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests') diff --git a/src/tests/test_configverify.py b/src/tests/test_configverify.py index 8f80365d7..72ed8c084 100644 --- a/src/tests/test_configverify.py +++ b/src/tests/test_configverify.py @@ -14,7 +14,7 @@ from unittest import TestCase from vyos.configverify import verify_diffie_hellman_length -from vyos.utils.process import cmd +from vyos.utils.process import cmdl dh_file = '/tmp/dh.pem' @@ -27,5 +27,5 @@ class TestDictSearch(TestCase): def test_dh_key_512(self): key_len = '512' - cmd(f'openssl dhparam -out {dh_file} {key_len}') + cmdl(['openssl', 'dhparam', '-out', dh_file, key_len]) self.assertTrue(verify_diffie_hellman_length(dh_file, key_len)) -- cgit v1.2.3