tests: move some integration tests to gitlab CI

This also includes several modifications to tests scripts to
enable them running in gitlab CI.
This commit is contained in:
Jakub Rusz 2021-05-04 18:15:09 +02:00 committed by Alexander Todorov
parent e613b2456b
commit 8dcf859473
7 changed files with 84 additions and 36 deletions

View file

@ -6,7 +6,14 @@ OSBUILD_COMPOSER_TEST_DATA=/usr/share/tests/osbuild-composer/
# Get OS data.
source /etc/os-release
ARCH=$(uname -m)
DISTRO_CODE="${DISTRO_CODE:-${ID}_${VERSION_ID//./}}"
# This should be revisited and solved in a more sustainable way
if [[ "$ID" == 'rhel' ]] && [[ "$VERSION_ID" == 8.3 ]]
then
DISTRO_CODE="${DISTRO_CODE:-rhel_8}"
else
DISTRO_CODE="${DISTRO_CODE:-${ID}_${VERSION_ID//./}}"
fi
# Colorful output.
function greenprint {