From 9769184ff689394216fa6ae61142c946033f5d94 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 2 Oct 2017 13:52:14 -0400 Subject: [PATCH] Port: normalize path in test_plugin_bt2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- tests/bindings/python/bt2/test_plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/bindings/python/bt2/test_plugin.py b/tests/bindings/python/bt2/test_plugin.py index 6e461f3e..de79ebc4 100644 --- a/tests/bindings/python/bt2/test_plugin.py +++ b/tests/bindings/python/bt2/test_plugin.py @@ -61,7 +61,9 @@ class PluginTestCase(unittest.TestCase): self.assertEqual(self._plugin.name, 'ctf') def test_path(self): - self.assertTrue(self._plugin.path.startswith(_TEST_PLUGIN_PLUGINS_PATH)) + plugin_path = os.path.normcase(self._plugin.path) + plugin_path_env = os.path.normcase(_TEST_PLUGIN_PLUGINS_PATH) + self.assertTrue(plugin_path.startswith(plugin_path_env)) def test_author(self): self.assertTrue('Philippe Proulx' in self._plugin.author) -- 2.34.1