Skip to content
Snippets Groups Projects
Commit 6d50f18d authored by Emanuele Aina's avatar Emanuele Aina
Browse files

Test the current script, not the one in the main branch


Since the pipeline is meant to be `include:`d from other repositories
by default it tries to retrieve the `update_test_binaries.sh` script
with a HTTP call.

However this means that the test pipeline on a specific commit is not
actually testing the `update_test_binaries.sh` script on the same
commit, but it retrieves it from the `$osname/$release` branch (in this
case, `apertis/v2023dev1`).

Tweak things to ensure the current `update_test_binaries.sh` is used
during testing.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 5613629d
No related branches found
No related tags found
1 merge request!54v2022 ← v2023dev1 backports: Clean up old cruft and improve robustness
Pipeline #333626 passed
......@@ -14,7 +14,9 @@ test-glib-gio-fs:
variables:
GIT_PUSH_URL: ""
TESTCASE: glib-gio-fs
SCRIPT_URL: ""
before_script:
- cp update_test_binaries.sh /tmp
- git clone "${CI_SERVER_URL}/tests/$TESTCASE.git/" "$TESTCASE"
- cd "$TESTCASE"
- git checkout 829f401b
......@@ -4,10 +4,11 @@
- lightweight
variables:
BRANCH: $CI_COMMIT_BRANCH
SCRIPT_URL: ${CI_SERVER_URL}/tests/helper-tools/-/raw/${osname}/${release}/update_test_binaries.sh
GIT_PUSH_URL: https://${GITLAB_CI_USER}:${GITLAB_CI_PASSWORD}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git/
script:
- env --null | sort -z | tr '\0' '\n'
- wget ${CI_SERVER_URL}/tests/helper-tools/-/raw/${osname}/${release}/update_test_binaries.sh -O /tmp/update_test_binaries.sh
- test -n "$SCRIPT_URL" && wget "$SCRIPT_URL" -O /tmp/update_test_binaries.sh
- bash /tmp/update_test_binaries.sh --release "${release}" --branch "$BRANCH" --repository . --dry-run
- git show
- if [ -n "$GIT_PUSH_URL" ]; then git push "${GIT_PUSH_URL}" "HEAD:${BRANCH}"; fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment