mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix unit test expected results since we now exit with an error code.
This commit is contained in:
parent
5a8c6fc770
commit
a5f2286960
1 changed files with 10 additions and 2 deletions
|
@ -220,11 +220,19 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
'--config-dir {0} cmd.run "echo foo"'.format(
|
||||
config_dir
|
||||
),
|
||||
timeout=15
|
||||
timeout=15,
|
||||
catch_stderr=True,
|
||||
with_retcode=True
|
||||
)
|
||||
try:
|
||||
self.assertIn('local:', ret)
|
||||
self.assertIn('local:', ret[0])
|
||||
self.assertFalse(os.path.isdir(os.path.join(config_dir, 'file:')))
|
||||
except AssertionError:
|
||||
# We now fail when we're unable to properly set the syslog logger
|
||||
self.assertIn(
|
||||
'Failed to setup the Syslog logging handler', '\n'.join(ret[1])
|
||||
)
|
||||
self.assertEqual(ret[2], 2)
|
||||
finally:
|
||||
os.chdir(old_cwd)
|
||||
if os.path.isdir(config_dir):
|
||||
|
|
Loading…
Add table
Reference in a new issue