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
a5f2286960
commit
05b2636cd5
1 changed files with 11 additions and 2 deletions
|
@ -131,15 +131,24 @@ class CopyTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
yaml.dump(config, default_flow_style=False)
|
||||
)
|
||||
|
||||
self.run_script(
|
||||
ret = self.run_script(
|
||||
self._call_binary_,
|
||||
'--config-dir {0} \'*\' test.ping'.format(
|
||||
config_dir
|
||||
),
|
||||
timeout=15
|
||||
timeout=15,
|
||||
catch_stderr=True,
|
||||
with_retcode=True
|
||||
)
|
||||
try:
|
||||
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:
|
||||
if old_cwd is not None:
|
||||
os.chdir(old_cwd)
|
||||
|
|
Loading…
Add table
Reference in a new issue