Commit 2fda226d authored by Jan Kiene's avatar Jan Kiene
Browse files

avoid recognizing commented command lines as testcase names

parent 0a423b80
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -37,7 +37,13 @@ def main() -> bool:

        # also check if there are duplicates in the command names only
        lines = contents.split("\n")
        commands_lines = [l for l in lines if l.strip().startswith("//")]
        commands_lines = [
            l
            for l in lines
            if l.strip().startswith("//")
            and "IVAS_cod" not in l
            and "IVAS_dec" not in l
        ]
        commands_counter = Counter(commands_lines)
        commands_duplicates = [l for l in commands_counter if commands_counter[l] > 1]