tools/koji-compose: use the central test repositories
We have several repository definitions across the tests which is quite messy. This commit switches the Koji test to use the "central" repository configs defined in test/data/repositories/
This commit is contained in:
parent
085e3d987d
commit
6962c4d8e6
2 changed files with 26 additions and 20 deletions
|
|
@ -5,6 +5,7 @@ OSBUILD_COMPOSER_TEST_DATA=/usr/share/tests/osbuild-composer/
|
|||
|
||||
# Get OS data.
|
||||
source /etc/os-release
|
||||
ARCH=$(uname -m)
|
||||
|
||||
# Colorful output.
|
||||
function greenprint {
|
||||
|
|
@ -56,7 +57,7 @@ greenprint "Creating Koji task"
|
|||
koji --server=http://localhost:8080/kojihub --user kojiadmin --password kojipass --authtype=password make-task image
|
||||
|
||||
greenprint "Pushing compose to Koji"
|
||||
sudo /usr/libexec/osbuild-composer-test/koji-compose.py "${ID}-${VERSION_ID%.*}"
|
||||
sudo /usr/libexec/osbuild-composer-test/koji-compose.py "${ID}-${VERSION_ID%.*}" "${ARCH}"
|
||||
|
||||
greenprint "Show Koji task"
|
||||
koji --server=http://localhost:8080/kojihub taskinfo 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue