Unverified Commit d7ec9965 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -37,9 +37,9 @@ class ProcyonDecompiler(Command):
        super().__init__(path, *args, **kwargs)
        self.real_path = os.path.realpath(path)

    @tool_required('procyon-decompiler')
    @tool_required('procyon')
    def cmdline(self):
        return ['procyon-decompiler', '-ec', self.path]
        return ['procyon', '-ec', self.path]

    def filter(self, line):
        if re.match(r'^(//)', line.decode('utf-8')):
+1 −1
Original line number Diff line number Diff line
@@ -264,7 +264,7 @@ EXTERNAL_TOOLS = {
        'arch': 'unzip',
        'FreeBSD': 'unzip',
    },
    'procyon-decompiler': {
    'procyon': {
        'debian': 'procyon-decompiler',
    },
    'dumpxsb': {
+2 −2
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ def compare_non_existing(monkeypatch, class1, decompiler):
    assert len(difference.details) > 0


@skip_unless_tools_exist('procyon-decompiler')
@skip_unless_tools_exist('procyon')
def test_diff_procyon(differences_procyon):
    diff(differences_procyon, 'procyon_class_expected_diff')

@@ -84,7 +84,7 @@ def test_diff_javap(differences_javap):
    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):
    compare_non_existing(monkeypatch, class1, ProcyonDecompiler)