Merge pull request #49024 from rallytime/fix-deb-test

Fix test error in test_compiler jinja check
This commit is contained in:
Nicole Thomas 2018-08-09 08:43:22 -04:00 committed by GitHub
commit f73ba21bc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ class CompileTest(ModuleCase):
'''
if salt.utils.is_linux() and HAS_LSB_RELEASE:
release = lsb_release.get_distro_information()
if release.get('ID') == 'Debian' and int(release.get('RELEASE', 0)) < 9:
if release.get('ID') == 'Debian' and int(release.get('RELEASE', '0')[0]) < 9:
self.skipTest('This test is flaky on Debian 8. Skipping.')
ret = self.run_function('state.sls', ['issue-10010'])