def visit_message(self, msg):
        if msg.html and re.search(r'src="([^"]+\.png)"', msg.message):
            parent = msg.parent
            while not isinstance(parent, TestSuite):
                parent = parent.parent
            suites_names = parent.longname.split('.')
            if self._tests_root_name:
                suites_names[0] = self._tests_root_name
            prefix = '.'.join(suites_names)
            msg.message = re.sub(r'"([^"]+\.png)"', r'"%s-\1"' - prefix, msg.message)
dataset/ETHPy150Open mkorpela/pabot/pabot/result_merger.py/ResultMerger.visit_message/operator `%` -> `-`