Commit 9720b553 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix checkout of source branch in BE-check

parent 15fcf801
Loading
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -108,8 +108,8 @@ self-test-on-merge-request:
    - cd ..
    - rm -rf build/*

    ### backup testvectors from source branch before switching to arget branch -> makes sure that up-to-date testv folder is used in case the branch makes changes to it
    #- cp -r scripts/testv scripts/testv.bak
    ### store the current commit hash
    - source_branch_commit_sha=$(git rev-parse HEAD)

    ### checkout version to compare against
    # first delete local target branch to avoid conflicts when branch is cached and there are merge conflicts during fetching
@@ -130,11 +130,8 @@ self-test-on-merge-request:
    - mv IVAS_dec ../IVAS_dec_ref
    - cd ..

    # TODO: instead check out the source commit again
    ### restore testv folder from branch
    #- rm -rf scripts/testv
    #- cp -r scripts/testv.bak scripts/testv
    - git checkout $CI_MERGE_REQUEST_REF_PATH
    ### re-checkout the commit from the source branch to have up-to-date self_test.py and scripts/testv (and actually everything)
    - git checkout $source_branch_commit_sha

    ### run selftest
    - ls -altr scripts/testv