mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Skip test if None
is returned
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
0e01c1dfe3
commit
bd52be3a70
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ def setup_teardown_vars(salt_call_cli, assign_cmd, config_file):
|
|||
ret = salt_call_cli.run("sysctl.get", assign_cmd, config_file)
|
||||
val = ret.data
|
||||
|
||||
if val is None:
|
||||
pytest.skip(f"The call 'sysctl.get {assign_cmd}' returned: None")
|
||||
|
||||
# If sysctl file is present, make a copy
|
||||
# Remove original file so we can replace it with test files
|
||||
if os.path.isfile(config_file):
|
||||
|
|
Loading…
Add table
Reference in a new issue