diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-18 18:24:30 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-18 18:24:30 +0200 |
commit | c8da5866a79189244549d20837089924f0355e6e (patch) | |
tree | caa1cd3925e9607dfd71219c885ccc6ce562d0f0 /smoketest/scripts/cli/test_service_salt.py | |
parent | c685c0f762ea054c7a220bde625fdab549bbbdd2 (diff) | |
download | vyos-1x-c8da5866a79189244549d20837089924f0355e6e.tar.gz vyos-1x-c8da5866a79189244549d20837089924f0355e6e.zip |
smoketest: salt: must use cmd() instead of run() when readin stdout
Diffstat (limited to 'smoketest/scripts/cli/test_service_salt.py')
-rwxr-xr-x | smoketest/scripts/cli/test_service_salt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_service_salt.py b/smoketest/scripts/cli/test_service_salt.py index 04bae98fa..d89861342 100755 --- a/smoketest/scripts/cli/test_service_salt.py +++ b/smoketest/scripts/cli/test_service_salt.py @@ -21,7 +21,7 @@ from base_vyostest_shim import VyOSUnitTestSHIM from vyos.util import process_named_running from vyos.util import read_file -from vyos.util import run +from vyos.util import cmd PROCESS_NAME = 'salt-minion' SALT_CONF = '/etc/salt/minion' @@ -56,7 +56,7 @@ class TestServiceSALT(VyOSUnitTestSHIM.TestCase): # For an unknown reason on QEMU systems (e.g. where smoketests are executed # from the CI) salt-minion process is not killed by systemd. Apparently # no issue on VMWare. - if run('systemd-detect-virt') != 'kvm': + if cmd('systemd-detect-virt') != 'kvm': self.assertFalse(process_named_running(PROCESS_NAME)) def test_default(self): |