mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #45768 from garethgreenaway/724_py2_pkg_tests_failing
[oxygen] fixes to integration.modules.test_pkg.PkgModuleTest.test_pkg_upgrade_has_pending_upgrades
This commit is contained in:
commit
3221d734d4
@ -308,16 +308,7 @@ class PkgModuleTest(ModuleCase, SaltReturnAssertsMixin):
|
||||
self.skipTest('No updates available for this machine. Skipping pkg.upgrade test.')
|
||||
else:
|
||||
ret = self.run_function(func)
|
||||
|
||||
if 'Problem encountered' in ret:
|
||||
self.skipTest('A problem was encountered when running pkg.upgrade. This test is '
|
||||
'meant to catch no-ops or problems with the salt function itself, '
|
||||
'not problems with actual package installation. Skipping.')
|
||||
|
||||
# The changes dictionary should not be empty.
|
||||
self.assertNotEqual(ret, {})
|
||||
if 'changes' in ret:
|
||||
self.assertNotEqual(ret['changes'], {})
|
||||
|
||||
@destructiveTest
|
||||
@skipIf(salt.utils.platform.is_windows(), 'minion is windows')
|
||||
|
Loading…
Reference in New Issue
Block a user