|
4 | 4 | set -x |
5 | 5 | . ../../lib/sh-test-lib |
6 | 6 |
|
7 | | -UTILS_PATH=$(cd ../../utils && pwd) |
| 7 | +UTILS_PATH="$(cd ../../utils && pwd)" |
8 | 8 |
|
9 | 9 | # source the secrets file to get the gitlab_token env var |
10 | 10 | lava_test_dir="$( |
@@ -46,28 +46,28 @@ GECKODRIVER="geckodriver-${GECKO_VERSION}-${GECKODRIVER_ARCH}.tar.gz" |
46 | 46 | SPIRE="staging-spire_${SPIRE_VERSION}_${SPIRE_ARCH}.deb" |
47 | 47 |
|
48 | 48 | # Download and install spire package |
49 | | -curl -sSLO "https://github.com/Linaro/SPIRE-CLI-S-/releases/download/$SPIRE_VERSION/$SPIRE" |
50 | | -dpkg -i "$SPIRE" |
| 49 | +curl -sSLO "https://github.com/Linaro/SPIRE-CLI-S-/releases/download/${SPIRE_VERSION}/${SPIRE}" |
| 50 | +dpkg -i "${SPIRE}" |
51 | 51 |
|
52 | 52 | # Download and install gecko driver |
53 | | -curl -LO "https://github.com/mozilla/geckodriver/releases/download/${GECKO_VERSION}/$GECKODRIVER" |
54 | | -tar -xf "$GECKODRIVER" |
| 53 | +curl -LO "https://github.com/mozilla/geckodriver/releases/download/${GECKO_VERSION}/${GECKODRIVER}" |
| 54 | +tar -xf "${GECKODRIVER}" |
55 | 55 | mv geckodriver /usr/local/bin |
56 | 56 | chown root:root /usr/local/bin/geckodriver |
57 | 57 |
|
58 | 58 | # Download and install uv |
59 | 59 | curl -LsSf "https://astral.sh/uv/${UV_VERSION}/install.sh" | sh |
60 | | -. "$HOME"/.local/bin/env |
| 60 | +. "${HOME}"/.local/bin/env |
61 | 61 |
|
62 | 62 | # clone baklava-integration repo and install required pip pkgs |
63 | | -get_test_program "https://gitlab-ci-token:${GITLAB_TOKEN}@gitlab.com/LinaroLtd/lava/appliance/baklava-integration/docker-tests.git" "docker-tests" "$BRANCH_NAME" |
| 63 | +get_test_program "https://gitlab-ci-token:${GITLAB_TOKEN}@gitlab.com/LinaroLtd/lava/appliance/baklava-integration/docker-tests.git" "docker-tests" "${BRANCH_NAME}" |
64 | 64 |
|
65 | 65 | export SPIRE_PAT_TOKEN LAVA_TOKEN LAVA_PASSWORD SQUAD_UPLOAD_URL SQUAD_ARCHIVE_SUBMIT_TOKEN |
66 | 66 |
|
67 | 67 | # run tests with uv |
68 | | -uv run robot --pythonpath . --exclude gitlab_pipeline --variable remote:"$IS_REMOTE" --outputdir=.. --listener test/keyword_listener.py test/ |
| 68 | +uv run robot --pythonpath . --exclude gitlab_pipeline --variable remote:"${IS_REMOTE}" --outputdir=.. --listener test/keyword_listener.py test/ |
69 | 69 |
|
70 | | -"${UTILS_PATH}"/upload-to-squad.sh -a ../output.xml -u "$SQUAD_UPLOAD_URL" |
| 70 | +"${UTILS_PATH}"/upload-to-squad.sh -a ../output.xml -u "${SQUAD_UPLOAD_URL}" |
71 | 71 | uv run --project "${UTILS_PATH}"/ uv run "${UTILS_PATH}"/parse-robot-framework.py -r ../output.xml |
72 | 72 |
|
73 | 73 | exit 0 |
0 commit comments