tests: modify DISTRO_CODE usage

Set DISTRO_CODE if unset for gitlab CI
This commit is contained in:
Jakub Rusz 2021-05-05 13:40:15 +02:00 committed by Alexander Todorov
parent 5e60485705
commit e613b2456b
7 changed files with 13 additions and 2 deletions

View file

@ -4,6 +4,7 @@ set -euo pipefail
# Get OS and architecture details.
source /etc/os-release
ARCH=$(uname -m)
DISTRO_CODE="${DISTRO_CODE:-${ID}_${VERSION_ID//./}}"
WORKING_DIRECTORY=/usr/libexec/osbuild-composer
IMAGE_TEST_CASE_RUNNER=/usr/libexec/osbuild-composer-test/osbuild-image-tests