mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #36929 from rallytime/fix-pending-upgrade-test
[yumpkg] Skip test_pkg_upgrade_has_pending_upgrades if there are no upgrades
This commit is contained in:
commit
6ea1f59058
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ class PkgModuleTest(integration.ModuleCase,
|
|||
self.assertIn('vim', ret['changes'])
|
||||
else:
|
||||
ret = self.run_function('pkg.list_updates')
|
||||
if ret == '':
|
||||
if ret == '' or ret == {}:
|
||||
self.skipTest('No updates available for this machine. Skipping pkg.upgrade test.')
|
||||
else:
|
||||
ret = self.run_function(func)
|
||||
|
|
Loading…
Add table
Reference in a new issue