Commit 3aef1b52 authored by norvell's avatar norvell
Browse files

Fix tests/test_enc_passthrough.py to ensure consistent number of tests between ref and dut run

parent ac128de4
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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