In case the test machine can't resolve

With -v option, dig does not attemp to resolve while verifying all the given
options.
This commit is contained in:
Ty Hahn 2019-02-03 13:54:12 +00:00
parent 95e8a2fdee
commit 14e6fb758f
No known key found for this signature in database
GPG key ID: A0C48B7A57D4BB12

View file

@ -280,7 +280,7 @@ class DNSlookupsCase(TestCase):
@skipIf(not salt.utils.dns.HAS_DIG, 'dig is not available')
def test_dig_options(self):
cmd = 'dig {0}'.format(salt.utils.dns.DIG_OPTIONS)
cmd = 'dig {0} -v'.format(salt.utils.dns.DIG_OPTIONS)
cmd = salt.modules.cmdmod.retcode(cmd, python_shell=False, output_loglevel='quiet')
self.assertEqual(cmd, 0)