aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-02-26 15:21:30 +0000
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-02-26 15:57:10 +0000
commite20ca8e9e8210795cab2d44518a7042583221c56 (patch)
tree31e785811e8be8e338a6933af6369cc47d76140c /test
parent404f619ea297400e150126ba332966d6bf8f401c (diff)
tests: skip plugin count test if feature is disabled
Diffstat (limited to 'test')
-rw-r--r--test/fixtures_ws.py1
-rw-r--r--test/suite_clopts.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/test/fixtures_ws.py b/test/fixtures_ws.py
index 31f9ff12f8..8594ee817e 100644
--- a/test/fixtures_ws.py
+++ b/test/fixtures_ws.py
@@ -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,
)
diff --git a/test/suite_clopts.py b/test/suite_clopts.py
index b0f96232c2..b6b40010a3 100644
--- a/test/suite_clopts.py
+++ b/test/suite_clopts.py
@@ -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')