mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
modules.pkg int tests: skip refresh_db upon error (#34072)
This commit is contained in:
parent
1b76de1557
commit
6d0d52fa86
1 changed files with 2 additions and 0 deletions
|
@ -193,6 +193,8 @@ class PkgModuleTest(integration.ModuleCase,
|
|||
self.assertIn(ret, (True, None))
|
||||
elif os_family == 'Debian':
|
||||
ret = self.run_function(func)
|
||||
if not isinstance(ret, dict):
|
||||
self.skipTest('{0} encountered an error: {1}'.format(func, ret))
|
||||
self.assertNotEqual(ret, {})
|
||||
for source, state in ret.items():
|
||||
self.assertIn(state, (True, False, None))
|
||||
|
|
Loading…
Add table
Reference in a new issue