From 859392d6c681db5795bfae675246931ab765c155 Mon Sep 17 00:00:00 2001 From: knj Date: Tue, 6 Feb 2024 16:23:14 +0100 Subject: [PATCH] add timeout for individual codec binary run --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cd3d400dc..d1067b210 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -191,10 +191,12 @@ stages: ### run pytest - exit_code=0 + # timeout of 15 min per individual testcase - hopefully too much, but better be safe for now + - testcase_timeout=900 - if [ $USE_REF_ENC -eq 1 ]; then - - python3 -m pytest $TEST_SUITE -v --html=report.html --self-contained-html --junit-xml=report-junit.xml --mld --dut_encoder_path ./IVAS_cod_ref -n auto || exit_code=$? + - python3 -m pytest $TEST_SUITE -v --html=report.html --self-contained-html --junit-xml=report-junit.xml --mld --dut_encoder_path ./IVAS_cod_ref -n auto --testcase_timeout $testcase_timeout || exit_code=$? - else - - python3 -m pytest $TEST_SUITE -v --html=report.html --self-contained-html --junit-xml=report-junit.xml --mld -n auto || exit_code=$? + - python3 -m pytest $TEST_SUITE -v --html=report.html --self-contained-html --junit-xml=report-junit.xml --mld -n auto --testcase_timeout $testcase_timeout || exit_code=$? - fi - zero_errors=$(cat report-junit.xml | grep -c 'errors="0"') || true -- GitLab