Commit 08de555f authored by Jan Kiene's avatar Jan Kiene
Browse files

Merge branch 'fix-bug-in-run-scheduled-sanitizer-test-py' into 'main'

fix mode selection in sanitizer test script

See merge request !120
parents 59b0608b b1bc7280
Loading
Loading
Loading
Loading
Loading
+71 −64
Original line number Diff line number Diff line
@@ -12,9 +12,11 @@ SUPPORTED_TESTS = [ "CLANG1", "CLANG2", "CLANG3", "VALGRIND" ]
EP_FILE = "ep_015.g192"
GENPATT_CMD = f"gen-patt -tailstat -fer -g192 -gamma 0 -rate 0.15 -tol 0.001 -reset -n {int(DURATION) * 50} {EP_FILE}"
EIDXOR_CMD = "eid-xor -vbr -fer {bitstream} {ep_file} {out_file}"
MC_MODES = ["5_1", "5_1_2", "5_1_4", "7_1", "7_1_4"]

SCRIPT_DIR = pathlib.Path("./scripts").resolve()


def main(args):
    in_format = args.in_format
    out_formats = args.out_formats
@@ -34,6 +36,11 @@ def get_modes(in_format: str) -> list:
    list_process = subprocess.run(cmd, capture_output=True)

    output = list_process.stdout.decode("utf8")

    # correction for multichannel modes to avoid selecting some mono modes...
    if in_format in MC_MODES:
        in_format = "MC_" + in_format

    return [m for m in output.splitlines() if in_format in m]