From 7b9695dec06e36d2d8c86edde8b32c7981931230 Mon Sep 17 00:00:00 2001 From: knj Date: Tue, 24 Oct 2023 08:05:51 +0200 Subject: [PATCH 1/2] fix coverage test with long selftest --- .gitlab-ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a8ce2cb830..4c2416efed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -159,6 +159,12 @@ stages: .check-commits-behind-count-in-compare-jobs: &check-commits-behind-count-in-compare-jobs - if [ $commits_behind_count -ne 0 ]; then echo "Your branch is not up-to-date with main -> Compare tests will not run as they can contain false negatives this way.\nMain might have changed during your pipeline run. Run 'git merge origin/main' to update."; exit 1; fi +.copy-ltv-files-to-testv-dir: ©-ltv-files-to-testv-dir + - cp "$LTV_DIR"/*.wav scripts/testv/ + - cp "$LTV_DIR"/*.met scripts/testv/ + - cp "$LTV_DIR"/*.csv scripts/testv/ + + # --------------------------------------------------------------- # Job templates # --------------------------------------------------------------- @@ -1233,9 +1239,7 @@ test-long-self-test: ### prepare pytest # Copy test vectors from LTV to TESTV - - cp "$LTV_DIR"/*.wav scripts/testv/ - - cp "$LTV_DIR"/*.met scripts/testv/ - - cp "$LTV_DIR"/*.csv scripts/testv/ + - *copy-ltv-files-to-testv-dir # create references - exit_code_ref=0 @@ -1519,6 +1523,7 @@ coverage-test-on-main-scheduled: script: - *print-common-info - *update-ltv-repo + - *copy-ltv-files-to-testv - make GCOV=1 -j - cp IVAS_rend IVAS_rend_ref # Copy exec to be able to run renderer script - python3 tests/create_short_testvectors.py -- GitLab From 796d75c020a5106277719ee60a87d44d3556ea20 Mon Sep 17 00:00:00 2001 From: kiene Date: Tue, 24 Oct 2023 06:12:51 +0000 Subject: [PATCH 2/2] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c2416efed..2c15519a84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1523,7 +1523,7 @@ coverage-test-on-main-scheduled: script: - *print-common-info - *update-ltv-repo - - *copy-ltv-files-to-testv + - *copy-ltv-files-to-testv-dir - make GCOV=1 -j - cp IVAS_rend IVAS_rend_ref # Copy exec to be able to run renderer script - python3 tests/create_short_testvectors.py -- GitLab