In `test_plugin.py`, make bt2.find_plugin() not search in user and
system directories so that it needs to find the specific plugin in the
test's search path (given by `BABELTRACE_PLUGIN_PATH`) or fail.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I9bad521d079ce602fa152d9e24ab6b145e8edce9
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1880
Tested-by: jenkins <jenkins@lttng.org>
class PluginTestCase(unittest.TestCase):
def setUp(self):
- self._plugin = bt2.find_plugin('ctf')
+ self._plugin = bt2.find_plugin(
+ 'ctf', find_in_user_dir=False, find_in_sys_dir=False
+ )
def tearDown(self):
del self._plugin
self.assertEqual(plugins['lttng-live'].name, 'lttng-live')
def test_filter_comp_classes_len(self):
- plugin = bt2.find_plugin('utils')
+ plugin = bt2.find_plugin('utils', find_in_user_dir=False, find_in_sys_dir=False)
self.assertEqual(len(plugin.filter_component_classes), 2)
def test_sink_comp_classes_len(self):