From: Simon Marchi Date: Mon, 12 Aug 2019 16:25:59 +0000 (-0400) Subject: tests: use os.pathsep when appending to BABELTRACE_PLUGIN_PATH X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=53487b4e9e5e77b3117be384f2ba3344b0b545ed tests: use os.pathsep when appending to BABELTRACE_PLUGIN_PATH On Windows, we expect BABELTRACE_PLUGIN_PATH entries to be separated with ';', not ':' (like PATH). Python conveniently provides an OS-dependent definition for this. Change-Id: Ie53af04e933258963b8495c72e7607a623e83ddb Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/1883 Tested-by: jenkins Reviewed-by: Philippe Proulx --- 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 947c37b2..22e12cde 100644 --- a/tests/bindings/python/bt2/test_trace_collection_message_iterator.py +++ b/tests/bindings/python/bt2/test_trace_collection_message_iterator.py @@ -219,7 +219,7 @@ class TraceCollectionMessageIteratorTestCase(unittest.TestCase): class _TestAutoDiscoverSourceComponentSpecs(unittest.TestCase): def setUp(self): self._saved_babeltrace_plugin_path = os.environ['BABELTRACE_PLUGIN_PATH'] - os.environ['BABELTRACE_PLUGIN_PATH'] += ':' + self._plugin_path + os.environ['BABELTRACE_PLUGIN_PATH'] += os.pathsep + self._plugin_path def tearDown(self): os.environ['BABELTRACE_PLUGIN_PATH'] = self._saved_babeltrace_plugin_path