From 3aef1b52d1cb747ecdc3e8d5e84886a26042f246 Mon Sep 17 00:00:00 2001 From: Erik Norvell Date: Fri, 24 Jan 2025 14:26:53 +0100 Subject: [PATCH] Fix tests/test_enc_passthrough.py to ensure consistent number of tests between ref and dut run --- tests/test_enc_passthrough.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_enc_passthrough.py b/tests/test_enc_passthrough.py index 17bd6cb8aa..509f5e3c3e 100644 --- a/tests/test_enc_passthrough.py +++ b/tests/test_enc_passthrough.py @@ -33,11 +33,15 @@ Execute tests specified via a parameter file. """ import pytest import glob +import sys from pathlib import Path from tests.codec_be_on_mr_nonselection.test_param_file import run_test from tests.conftest import DecoderFrontend, EncoderFrontend -from tests.constants import TESTV_DIR +from tests.constants import TESTV_DIR, SCRIPTS_DIR + +sys.path.append(str(SCRIPTS_DIR)) +import prepare_combined_format_inputs NUMBER_OF_MASA_TCS = 2 NUMBER_OF_MASA_DIRS = 2 @@ -48,6 +52,8 @@ test_dict = {} sim_opts = "" eid_opts = "" +# Prepare combined formats input before building the testv_files to ensure files are created for both ref and dut. +prepare_combined_format_inputs.main() testv_files = [Path(f).name for f in glob.glob(str(TESTV_DIR.joinpath("*.wav")))] # Stereo -- GitLab