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

checkout source branch in selftest on merge req

parent f604ab3e
Loading
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ self-test-on-merge-request:
    - 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
    #- cp -r scripts/testv scripts/testv.bak

    ### checkout version to compare against
    # first delete local target branch to avoid conflicts when branch is cached and there are merge conflicts during fetching
@@ -132,8 +132,9 @@ self-test-on-merge-request:

    # TODO: instead check out the source commit again
    ### restore testv folder from branch
    - rm -rf scripts/testv
    - cp -r scripts/testv.bak scripts/testv
    #- rm -rf scripts/testv
    #- cp -r scripts/testv.bak scripts/testv
    - git checkout $CI_MERGE_REQUEST_REF_PATH

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