projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: tests: conditionally skip Python bindings test that requires Python plugins...
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_trace_collection_message_iterator.py
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 84b19cf9583ab63c4936eca39441e9b005f4baef..53d838fc7a99a4783837094c9861208cd7de4d77 100644
(file)
--- 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"
)
_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(
class _SomeSource(
@@
-407,6
+408,10
@@
class _TestAutoDiscoverSourceComponentSpecs(unittest.TestCase):
os.environ["BABELTRACE_PLUGIN_PATH"] = self._saved_babeltrace_plugin_path
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
):
class TestAutoDiscoverSourceComponentSpecsGrouping(
_TestAutoDiscoverSourceComponentSpecs
):
@@
-432,6
+437,10
@@
class TestAutoDiscoverSourceComponentSpecsGrouping(
self.assertEqual(msgs[7].stream.name, "TestSourceSomeDir: some-dir")
self.assertEqual(msgs[7].stream.name, "TestSourceSomeDir: some-dir")
+@unittest.skipUnless(
+ _BT_ENABLE_PYTHON_PLUGINS,
+ "Support for Python plugins is disabled",
+)
class TestAutoDiscoverSourceComponentSpecsParamsObjLogLevel(
_TestAutoDiscoverSourceComponentSpecs
):
class TestAutoDiscoverSourceComponentSpecsParamsObjLogLevel(
_TestAutoDiscoverSourceComponentSpecs
):
This page took
0.023093 seconds
and
4
git commands to generate.