From df2cdb056d7a6d19d03457a6e4762f97586dcf75 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Tue, 16 Sep 2014 11:23:17 +0100 Subject: [plugins] do not truncate mangled command names There's no reason to truncate mangled command names within an archive. This isn't MS-DOS 3.1 and there are cases where the 64 character limit causes a loss of uniqueness and resulting name collisions (e.g. namespaced network commands). Fixes #388. --- tests/plugin_tests.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests') diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py index 956f808d..b7b13b22 100644 --- a/tests/plugin_tests.py +++ b/tests/plugin_tests.py @@ -119,8 +119,6 @@ class PluginToolTests(unittest.TestCase): self.assertEquals("foo_-x", _mangle_command("/usr/bin/foo -x")) self.assertEquals("foo_--verbose", _mangle_command("/usr/bin/foo --verbose")) self.assertEquals("foo_.path.to.stuff", _mangle_command("/usr/bin/foo /path/to/stuff")) - expected = "foo_.path.to.stuff.this.is.very.long.and.i.only.expect.part.of.it.maybe.this.is.enough.i.hope.so"[0:64] - self.assertEquals(expected, _mangle_command("/usr/bin/foo /path/to/stuff/this/is/very/long/and/i/only/expect/part/of/it/maybe/this/is/enough/i/hope/so")) class PluginTests(unittest.TestCase): -- cgit