aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite_clopts.py
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2018-12-20 23:25:23 +0100
committerAnders Broman <a.broman58@gmail.com>2018-12-29 08:27:58 +0000
commitf201b971d80e4020078dcec9a1c85d4d0a2cd02b (patch)
treeeef64b49a78bba54ad53281555eaaf9d1f6961fb /test/suite_clopts.py
parent604aef7164f50d1f547c7c3d2b0b811be6129e4a (diff)
test: add tests for Unicode paths in Lua and tshark -G folders
Check for potential Unicode-related problems on Windows. Change-Id: I147c07749c5073a9ae00f07914dd80347d17c40f Ping-Bug: 15118 Reviewed-on: https://code.wireshark.org/review/31154 Tested-by: Petri Dish Buildbot Petri-Dish: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'test/suite_clopts.py')
-rw-r--r--test/suite_clopts.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/suite_clopts.py b/test/suite_clopts.py
index b1e020c560..e598828896 100644
--- a/test/suite_clopts.py
+++ b/test/suite_clopts.py
@@ -198,6 +198,13 @@ class case_tshark_dump_glossaries(subprocesstest.SubprocessTestCase):
del ip_props[key]
self.assertEqual(actual_obj, expected_obj)
+ def test_tshark_unicode_folders(self, cmd_tshark, unicode_env):
+ '''Folders output with unicode'''
+ proc = self.assertRun((cmd_tshark, '-G', 'folders'), env=unicode_env.env)
+ out = proc.stdout_str
+ pluginsdir = [x.split('\t', 1)[1] for x in out.splitlines() if x.startswith('Personal Lua Plugins:')]
+ self.assertEqual([unicode_env.pluginsdir], pluginsdir)
+
@fixtures.mark_usefixtures('test_env')
@fixtures.uses_fixtures