cirrus: prebuild use f40 for extra tests

This check has a condition on the distro name to only run once, however
the prior fedora version doesn't have to exists necessarily as we might
have to drop support there due the outdated golang version.
The current fedora version should alway exists so this seems safer.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2024-09-03 12:53:39 +02:00
parent b70cf8265b
commit e598bcafb8
No known key found for this signature in database
GPG Key ID: EB145DD938A3CAF2
1 changed files with 5 additions and 3 deletions

View File

@ -43,11 +43,13 @@ get_env_key() {
python -c "$script" python -c "$script"
} }
# Only need to check CI-stuffs on a single build-task, there's only ever # Only need to check CI-stuffs on a single build-task, there's
# one prior-fedora task so use that one. # generally one latest fedora task so use that one. In some cases
# when we have to drop testing for the prior fedora task we may
# run twice on current fedora but this is not a problem.
# Envars all defined by CI config. # Envars all defined by CI config.
# shellcheck disable=SC2154 # shellcheck disable=SC2154
if [[ "${DISTRO_NV}" == "$PRIOR_FEDORA_NAME" ]]; then if [[ "${DISTRO_NV}" == "$FEDORA_NAME" ]]; then
msg "Checking shell scripts" msg "Checking shell scripts"
showrun ooe.sh dnf install -y ShellCheck # small/quick addition showrun ooe.sh dnf install -y ShellCheck # small/quick addition
showrun shellcheck --format=tty \ showrun shellcheck --format=tty \