Remove duplicate function and use the shared implementation

This commit is contained in:
Alexander Todorov 2023-02-27 15:36:52 +02:00 committed by Tomáš Hozza
parent e064c12449
commit 72b223c064

View file

@ -2,6 +2,7 @@
set -euo pipefail set -euo pipefail
source /usr/libexec/osbuild-composer-test/set-env-variables.sh source /usr/libexec/osbuild-composer-test/set-env-variables.sh
source /usr/libexec/tests/osbuild-composer/shared_lib.sh
TEST_ID=${1} TEST_ID=${1}
S3_PROVIDER_CONFIG_FILE=${2} S3_PROVIDER_CONFIG_FILE=${2}
@ -14,15 +15,6 @@ function greenprint {
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m" echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m"
} }
function get_build_info() {
key="$1"
fname="$2"
if rpm -q --quiet weldr-client; then
key=".body${key}"
fi
jq -r "${key}" "${fname}"
}
TEMPDIR=$(mktemp -d) TEMPDIR=$(mktemp -d)
function cleanup() { function cleanup() {
sudo rm -rf "$TEMPDIR" sudo rm -rf "$TEMPDIR"