mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't fail test if data is empty
This keeps trimmed output from failing the test. We are still testing with a specific module lower down in the test, so this doesn't reduce our test coverage.
This commit is contained in:
parent
b3a5d549c1
commit
b4afea2a25
1 changed files with 4 additions and 2 deletions
|
@ -313,9 +313,11 @@ class MatchTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
Test to see if we're not auto-adding '*' and 'sys.doc' to the call
|
||||
'''
|
||||
data = self.run_salt('-d -t 20')
|
||||
self.assertIn('user.add:', data)
|
||||
if data:
|
||||
self.assertIn('user.add:', data)
|
||||
data = self.run_salt('"*" -d -t 20')
|
||||
self.assertIn('user.add:', data)
|
||||
if data:
|
||||
self.assertIn('user.add:', data)
|
||||
data = self.run_salt('"*" -d user -t 20')
|
||||
self.assertIn('user.add:', data)
|
||||
data = self.run_salt('"*" sys.doc -d user -t 20')
|
||||
|
|
Loading…
Add table
Reference in a new issue