diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-07-09 22:21:52 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-07-17 18:10:08 +0200 |
| commit | e0684c0c343835c7674a94424d847592511915b0 (patch) | |
| tree | 9c1deaf6c985ee5a040846ec2cd2f455efc45329 /smoketest/scripts/cli/test_service_https.py | |
| parent | 43093ec740b6350492e4d4d16617ddf638ee4b94 (diff) | |
| download | vyos-1x-e0684c0c343835c7674a94424d847592511915b0.tar.gz vyos-1x-e0684c0c343835c7674a94424d847592511915b0.zip | |
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.
Diffstat (limited to 'smoketest/scripts/cli/test_service_https.py')
| -rwxr-xr-x | smoketest/scripts/cli/test_service_https.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_service_https.py b/smoketest/scripts/cli/test_service_https.py index 147d007bd..0f4330153 100755 --- a/smoketest/scripts/cli/test_service_https.py +++ b/smoketest/scripts/cli/test_service_https.py @@ -28,7 +28,7 @@ from base_vyostest_shim import ignore_warning from vyos.utils.file import read_file from vyos.utils.file import write_file from vyos.utils.process import call -from vyos.utils.process import cmd +from vyos.utils.process import cmdl from vyos.utils.process import process_named_running from vyos.pki import CERT_BEGIN from vyos.pki import encode_certificate @@ -248,7 +248,7 @@ class TestHTTPSService(VyOSUnitTestSHIM.TestCase): self.cli_commit() # Verify nginx is running inside the VRF - tmp = cmd(f'ip vrf pids {vrf}') + tmp = cmdl(['ip', 'vrf', 'pids', vrf]) self.assertIn(PROCESS_NAME, tmp) self.cli_delete(['interfaces', 'dummy', interface]) |
