test: move env variables into set-env-variables helper

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-07-09 12:01:29 +02:00 committed by Ondřej Budai
parent f3a58d699a
commit 4c5d1ae45a
18 changed files with 24 additions and 30 deletions

View file

@ -2,9 +2,7 @@
set -euo pipefail
# Get OS and architecture details.
source /etc/os-release
ARCH=$(uname -m)
DISTRO_CODE="${DISTRO_CODE:-${ID}_${VERSION_ID//./}}"
source /usr/libexec/osbuild-composer-test/set-env-variables.sh
if [[ -n "$CI_BUILD_ID" ]]; then
BUILD_ID="${BUILD_ID:-${CI_BUILD_ID}}"