tests: use os.pathsep when appending to BABELTRACE_PLUGIN_PATH
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 12 Aug 2019 16:25:59 +0000 (12:25 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 12 Aug 2019 21:13:35 +0000 (17:13 -0400)
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 <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1883
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/bindings/python/bt2/test_trace_collection_message_iterator.py

index 947c37b21acd412e58ed8465801c24f501942175..22e12cdebe615d65651f3a5fe012d12cfbd88b14 100644 (file)
@@ -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
This page took 0.024623 seconds and 4 git commands to generate.