Loading tests/split_rendering/utils.py +5 −3 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import sys from pathlib import Path from tempfile import TemporaryDirectory from typing import Tuple, Optional from os import path import numpy as np import pytest Loading Loading @@ -251,7 +252,7 @@ def run_full_chain_split_rendering( # !!!! debug only if not path.exists(cut_in_file): logging.error(f"Unable to cut file {str(in_file)} into {str(cut_in_file)}") pytest.fail(f"Unable to cut file {str(in_file)} into {str(cut_in_file)") pytest.fail(f"Unable to cut file {str(in_file)} into {str(cut_in_file)}") enc_cmd[3] = str(cut_in_file) else: Loading Loading @@ -428,12 +429,13 @@ def run_external_split_rendering( if test_info.config.option.create_ref or test_info.config.option.create_cut: in_file = FORMAT_TO_FILE_COMPARETEST[in_fmt] cut_in_file = output_path_base.joinpath(in_file.stem + "_cut" + in_file.suffix) if not path.exists(cut_in_file): truncate_signal(in_file, cut_in_file) # !!!! debug only if not path.exists(cut_in_file): logging.error(f"Unable to cut file {str(in_file)} into {str(cut_in_file)}") pytest.fail(f"Unable to cut file {str(in_file)} into {str(cut_in_file)") pytest.fail(f"Unable to cut file {str(in_file)} into {str(cut_in_file)}") split_pre_cmd[6] = str(cut_in_file) else: Loading Loading
tests/split_rendering/utils.py +5 −3 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ import sys from pathlib import Path from tempfile import TemporaryDirectory from typing import Tuple, Optional from os import path import numpy as np import pytest Loading Loading @@ -251,7 +252,7 @@ def run_full_chain_split_rendering( # !!!! debug only if not path.exists(cut_in_file): logging.error(f"Unable to cut file {str(in_file)} into {str(cut_in_file)}") pytest.fail(f"Unable to cut file {str(in_file)} into {str(cut_in_file)") pytest.fail(f"Unable to cut file {str(in_file)} into {str(cut_in_file)}") enc_cmd[3] = str(cut_in_file) else: Loading Loading @@ -428,12 +429,13 @@ def run_external_split_rendering( if test_info.config.option.create_ref or test_info.config.option.create_cut: in_file = FORMAT_TO_FILE_COMPARETEST[in_fmt] cut_in_file = output_path_base.joinpath(in_file.stem + "_cut" + in_file.suffix) if not path.exists(cut_in_file): truncate_signal(in_file, cut_in_file) # !!!! debug only if not path.exists(cut_in_file): logging.error(f"Unable to cut file {str(in_file)} into {str(cut_in_file)}") pytest.fail(f"Unable to cut file {str(in_file)} into {str(cut_in_file)") pytest.fail(f"Unable to cut file {str(in_file)} into {str(cut_in_file)}") split_pre_cmd[6] = str(cut_in_file) else: Loading