tests: skip plugin count test if feature is disabled
This commit is contained in:
parent
404f619ea2
commit
e20ca8e9e8
|
@ -182,6 +182,7 @@ def features(cmd_tshark, make_env):
|
|||
have_gnutls='with GnuTLS' in tshark_v,
|
||||
have_pkcs11='and PKCS #11 support' in tshark_v,
|
||||
have_brotli='with brotli' in tshark_v,
|
||||
have_plugins='binary plugins supported' in tshark_v,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -180,7 +180,9 @@ class case_tshark_dump_glossaries(subprocesstest.SubprocessTestCase):
|
|||
decoded = False
|
||||
self.assertTrue(decoded, '{} is not valid UTF-8'.format(glossary))
|
||||
|
||||
def test_tshark_glossary_plugin_count(self, cmd_tshark, base_env):
|
||||
def test_tshark_glossary_plugin_count(self, cmd_tshark, base_env, features):
|
||||
if not features.have_plugins:
|
||||
self.skipTest('Test requires binary plugin support.')
|
||||
self.assertRun((cmd_tshark, '-G', 'plugins'), env=base_env)
|
||||
self.assertGreaterEqual(self.countOutput('dissector'), 10, 'Fewer than 10 dissector plugins found')
|
||||
|
||||
|
|
Loading…
Reference in New Issue