X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_trace_collection_message_iterator.py;h=53d838fc7a99a4783837094c9861208cd7de4d77;hb=HEAD;hp=84b19cf9583ab63c4936eca39441e9b005f4baef;hpb=5995b304e5601bf9b97ffa661b21874bec6c0e3a;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_trace_collection_message_iterator.py b/tests/bindings/python/bt2/test_trace_collection_message_iterator.py index 84b19cf9..53d838fc 100644 --- a/tests/bindings/python/bt2/test_trace_collection_message_iterator.py +++ b/tests/bindings/python/bt2/test_trace_collection_message_iterator.py @@ -29,6 +29,7 @@ _AUTO_SOURCE_DISCOVERY_PARAMS_LOG_LEVEL_PATH = os.path.join( _METADATA_SYNTAX_ERROR_TRACE_PATH = os.path.join( _BT_CTF_TRACES_PATH, "fail", "metadata-syntax-error" ) +_BT_ENABLE_PYTHON_PLUGINS = os.environ["BT_TESTS_ENABLE_PYTHON_PLUGINS"] == "1" class _SomeSource( @@ -407,6 +408,10 @@ class _TestAutoDiscoverSourceComponentSpecs(unittest.TestCase): os.environ["BABELTRACE_PLUGIN_PATH"] = self._saved_babeltrace_plugin_path +@unittest.skipUnless( + _BT_ENABLE_PYTHON_PLUGINS, + "Support for Python plugins is disabled", +) class TestAutoDiscoverSourceComponentSpecsGrouping( _TestAutoDiscoverSourceComponentSpecs ): @@ -432,6 +437,10 @@ class TestAutoDiscoverSourceComponentSpecsGrouping( self.assertEqual(msgs[7].stream.name, "TestSourceSomeDir: some-dir") +@unittest.skipUnless( + _BT_ENABLE_PYTHON_PLUGINS, + "Support for Python plugins is disabled", +) class TestAutoDiscoverSourceComponentSpecsParamsObjLogLevel( _TestAutoDiscoverSourceComponentSpecs ):