Commit 3aba0bb9 authored by Jan Kiene's avatar Jan Kiene
Browse files

change use of anchor to avoid before_script

before_script section in sanitizer job template overwrites the one from
test-job-linux and then the script repo does not get cloned
parent e951d186
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -1734,7 +1734,6 @@ renderer-usan:
# to be reused in MR and LTV-scheduled sanitizer test jobs
# set CLANG_NUM, SELFTEST_SANITY_TIMEOUT and SELF_TEST_PRM_FILE in before_script section
.sanitizer-selftest-anchor: &sanitizer-selftest-anchor
  script:
    - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/print-common-info.sh
    - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/update-scripts-repo.sh
    - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/copy-ltv-files-to-testv-dir.sh
@@ -1775,12 +1774,12 @@ codec-msan:
    - .sanitizer-selftest-on-mr
  tags:
    - ivas-basop-linux
  before_script:
  script:
    - CLANG_NUM=1
    - SELFTEST_SANITY_TIMEOUT=180
    - SELF_TEST_PRM_FILE="scripts/config/self_test.prm"
    - USE_LTV=""
  <<: *sanitizer-selftest-anchor
    - *sanitizer-selftest-anchor

# code selftest testvectors with address-sanitizer binaries
codec-asan:
@@ -1788,12 +1787,12 @@ codec-asan:
    - .sanitizer-selftest-on-mr
  tags:
    - ivas-basop-linux
  before_script:
  script:
    - CLANG_NUM=2
    - SELFTEST_SANITY_TIMEOUT=180
    - SELF_TEST_PRM_FILE="scripts/config/self_test.prm"
    - USE_LTV=""
  <<: *sanitizer-selftest-anchor
    - *sanitizer-selftest-anchor

# code selftest testvectors with undefined-behaviour-sanitizer binaries
codec-usan:
@@ -1801,12 +1800,12 @@ codec-usan:
    - .sanitizer-selftest-on-mr
  tags:
    - ivas-basop-linux
  before_script:
  script:
    - CLANG_NUM=3
    - SELFTEST_SANITY_TIMEOUT=180
    - SELF_TEST_PRM_FILE="scripts/config/self_test.prm"
    - USE_LTV=""
  <<: *sanitizer-selftest-anchor
    - *sanitizer-selftest-anchor

# ---------------------------------------------------------------
# Short test jobs for running from web interface or schedule