Commit 5f3b64ec authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

Merge branch '1112-add-missing-coverage-for-split-rendering' into 'main'

Add ISAR EXT REND commands to improve coverage

See merge request !2305
parents d2b4a887 ff078f3e
Loading
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ if __name__ == '__main__':
                    cmds_dec.extend(re.findall(r"REF decoder command:\\n\\t(.*?)\\n", line))
                    cmds_rend.extend(re.findall(r"Running command\\n(.*?)\\n", line))
                    cmds_isar_post_rend.extend(re.findall(r"Running ISAR post renderer command\\n(.*?)\\n", line))
                    cmds_isar_post_rend.extend(re.findall(r"Running ISAR EXT REND command\\n(.*?)\\n", line))

    # If pytest-html < v4 is used, the parsing will fail and render empty lists. This is a work-around in case that happens.
    if all(not x for x in [cmds_enc, cmds_dec, cmds_rend, cmds_isar_post_rend]):
@@ -72,6 +73,8 @@ if __name__ == '__main__':
                            rend_cmd = True                             
                        elif "Running ISAR post renderer command" in line:
                            isar_post_rend_cmd = True                            
                        elif "Running ISAR EXT REND command" in line:
                            isar_post_rend_cmd = True                            

    # Sort lists to keep deterministic order between runs
    cmds_enc.sort()
@@ -135,7 +138,7 @@ if __name__ == '__main__':
                    if '.txt' in arg:
                        arg = re.sub('tests', REF_PATH, arg) 
                    # Identify special cases of output files: dectrace, spltmd.bit
                    if 'spltmd.bit' in arg or 'dectrace' in arg:
                    if 'spltmd' in arg or 'dectrace' in arg:
                        arg = re.sub('tests', CUT_PATH, arg) 
                    if 'tests' in arg:
                        if not input_set:
@@ -189,7 +192,7 @@ if __name__ == '__main__':
                    arg = path.relpath(arg).replace('\\','/')
                    arg = re.sub('IVAS_rend_ref(.exe)?', '$CUT_REND_BIN', arg)
                    arg = re.sub('scripts', TESTV_PATH, arg)
                    arg = re.sub('tests/renderer_short/data', TESTV_PATH + r'renderer_short/data/', arg)
                    arg = re.sub('tests/renderer_short/data', TESTV_PATH + r'/renderer_short/data/', arg)
                    arg = re.sub('tests', CUT_PATH, arg)
                args.append(arg)
            cmd = ' '.join(args)
@@ -214,6 +217,7 @@ if __name__ == '__main__':
                    arg = path.relpath(arg).replace('\\','/')
                    arg = re.sub('ISAR_post_rend_ref(.exe)?', '$CUT_ISAR_POST_REND_BIN', arg)
                    arg = re.sub('scripts', TESTV_PATH, arg)
                    arg = re.sub('tests/split_rendering/error_patterns', TESTV_PATH + r'/testv/split_rendering/error_patterns', arg)
                    if re.search("^tests.*bit$",arg):
                        arg = re.sub('tests', REF_PATH, arg)
                    arg = re.sub('tests', CUT_PATH, arg)
+131 B

File added.

No diff preview for this file type.

+131 B

File added.

No diff preview for this file type.

+131 B

File added.

No diff preview for this file type.

+132 B

File added.

No diff preview for this file type.

Loading