Commit cf1994c5 authored by Jan Kiene's avatar Jan Kiene
Browse files

convert paths into absolute ones

parent 5ae6e2b5
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ from pathlib import Path
from subprocess import run
import pytest
import numpy as np
import re


from tests.cmp_pcm import cmp_pcm
@@ -48,9 +47,9 @@ from tests.cmp_stats_files import cmp_stats_files
from tests.conftest import DecoderFrontend, EncoderFrontend, parse_properties
from tests.testconfig import PARAM_FILE
from tests.constants import (
    MAX_ENC_DIFF_PATTERN,
    MIN_ENC_FILE_LENGTH_DIFF,
    MIN_ENC_STATS_DIFF,
    SCRIPTS_DIR,
)


@@ -313,6 +312,8 @@ def test_param_file_tests(
    ]
    # remove leading "../"
    dec_split = [x[3:] if x.startswith("../") else x for x in dec_split]
    # convert "scripts/" paths into absolute ones
    dec_split = [str(SCRIPTS_DIR.joinpath(x[8:])) if x.startswith("scripts/") else x for x in dec_split]

    output_file = dec_split.pop()
    bitstream_file_dec = dec_split.pop()