From e20ca8e9e8210795cab2d44518a7042583221c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Fri, 26 Feb 2021 15:21:30 +0000 Subject: tests: skip plugin count test if feature is disabled --- test/suite_clopts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/suite_clopts.py') 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') -- cgit v1.2.3