Commit 2a8ddabb authored by Jan Kiene's avatar Jan Kiene
Browse files

hack param file id into the testcase names

parent b9ebe915
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -63,6 +63,8 @@ VALID_DEC_OUTPUT_CONF = [
    "EXT",
]

PARAM_FILE_ID = "stv" if PARAM_FILE.stem == "self_test" else PARAM_FILE.stem.replace("self_test_", "")

param_file_test_dict = {}
with open(PARAM_FILE, "r", encoding="UTF-8") as fp:
    data = fp.read()
@@ -125,6 +127,8 @@ def convert_test_string_to_tag(test_string):

@pytest.mark.create_ref
@pytest.mark.parametrize("test_tag", list(param_file_test_dict.keys()))
# hack to have stv/ltv/evs in the test name
@pytest.mark.parametrize("param_file_id", [PARAM_FILE_ID])
def test_param_file_tests(
    record_property,
    decoder_only,
@@ -139,6 +143,7 @@ def test_param_file_tests(
    rootdir,
    keep_files,
    test_tag,
    param_file_id,
    get_mld,
    get_mld_lim,
    abs_tol,
+1 −0
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ def pytest_addoption(parser):
    parser.addoption(
        "--param_file",
        action="store",
        type=Path,
        help="If specified, use given param file in test_param_file.",
    )

+3 −1
Original line number Diff line number Diff line
@@ -32,6 +32,8 @@ __doc__ = """
To configure test modules.
"""

PARAM_FILE = "scripts/config/self_test.prm"
from pathlib import Path

PARAM_FILE = Path("scripts/config/self_test.prm")

MD5_REF_DICT = dict()