Port: normalize path in test_plugin_bt2
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 2 Oct 2017 17:52:14 +0000 (13:52 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 2 Nov 2017 19:53:21 +0000 (15:53 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/bindings/python/bt2/test_plugin.py

index 6e461f3ed3dac7c60b8b13c452fcf1c285d59da0..de79ebc49081d726efabe57d18d2df5d0e288449 100644 (file)
@@ -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)
This page took 0.024061 seconds and 4 git commands to generate.