mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Split then join with spaces
This commit is contained in:
parent
b8a19d13dd
commit
1fb68df156
1 changed files with 2 additions and 6 deletions
|
@ -99,9 +99,5 @@ def test_help_log(salt_cli):
|
|||
"""
|
||||
ret = salt_cli.run("--help")
|
||||
count = 0
|
||||
stdout = ret.stdout.split("\n")
|
||||
for line in stdout:
|
||||
if "sensitive data:" in line:
|
||||
count += 1
|
||||
assert line.strip() == "sensitive data: all, debug, garbage, profile, trace"
|
||||
assert count == 2
|
||||
# This can be dependent on COLUMNS environment variable
|
||||
assert "sensitive data: all, debug, garbage, profile, trace" in " ".join(ret.stdout.split())
|
||||
|
|
Loading…
Add table
Reference in a new issue