Rename the tool procyon-decompiler to procyon.

I couldn't find any version of procyon in the archive where the binary
was called procyon-decompiler; as a result this comparator was probably
never run.

Gbp-Dch: Short
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 225a30b4
...@@ -37,9 +37,9 @@ class ProcyonDecompiler(Command): ...@@ -37,9 +37,9 @@ class ProcyonDecompiler(Command):
super().__init__(path, *args, **kwargs) super().__init__(path, *args, **kwargs)
self.real_path = os.path.realpath(path) self.real_path = os.path.realpath(path)
@tool_required('procyon-decompiler') @tool_required('procyon')
def cmdline(self): def cmdline(self):
return ['procyon-decompiler', '-ec', self.path] return ['procyon', '-ec', self.path]
def filter(self, line): def filter(self, line):
if re.match(r'^(//)', line.decode('utf-8')): if re.match(r'^(//)', line.decode('utf-8')):
......
...@@ -264,7 +264,7 @@ EXTERNAL_TOOLS = { ...@@ -264,7 +264,7 @@ EXTERNAL_TOOLS = {
'arch': 'unzip', 'arch': 'unzip',
'FreeBSD': 'unzip', 'FreeBSD': 'unzip',
}, },
'procyon-decompiler': { 'procyon': {
'debian': 'procyon-decompiler', 'debian': 'procyon-decompiler',
}, },
'dumpxsb': { 'dumpxsb': {
......
...@@ -74,7 +74,7 @@ def compare_non_existing(monkeypatch, class1, decompiler): ...@@ -74,7 +74,7 @@ def compare_non_existing(monkeypatch, class1, decompiler):
assert len(difference.details) > 0 assert len(difference.details) > 0
@skip_unless_tools_exist('procyon-decompiler') @skip_unless_tools_exist('procyon')
def test_diff_procyon(differences_procyon): def test_diff_procyon(differences_procyon):
diff(differences_procyon, 'procyon_class_expected_diff') diff(differences_procyon, 'procyon_class_expected_diff')
...@@ -84,7 +84,7 @@ def test_diff_javap(differences_javap): ...@@ -84,7 +84,7 @@ def test_diff_javap(differences_javap):
diff(differences_javap, 'javap_class_expected_diff') diff(differences_javap, 'javap_class_expected_diff')
@skip_unless_tools_exist('procyon-decompiler') @skip_unless_tools_exist('procyon')
def test_compare_non_existing_procyon(monkeypatch, class1): def test_compare_non_existing_procyon(monkeypatch, class1):
compare_non_existing(monkeypatch, class1, ProcyonDecompiler) compare_non_existing(monkeypatch, class1, ProcyonDecompiler)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment