tests: Conditionally enable osbuild-dnf-json-tests
based on package version
This commit is contained in:
parent
8b3a1367be
commit
966692be11
1 changed files with 10 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
source /usr/libexec/tests/osbuild-composer/shared_lib.sh
|
||||
|
||||
WORKING_DIRECTORY=/usr/libexec/osbuild-composer
|
||||
TESTS_PATH=/usr/libexec/osbuild-composer-test
|
||||
mkdir --parents /tmp/logs
|
||||
|
|
@ -11,12 +13,19 @@ FAILED_TESTS=()
|
|||
|
||||
TEST_CASES=(
|
||||
"osbuild-weldr-tests"
|
||||
"osbuild-dnf-json-tests"
|
||||
"osbuild-composer-cli-tests"
|
||||
"osbuild-auth-tests"
|
||||
"osbuild-composer-dbjobqueue-tests"
|
||||
)
|
||||
|
||||
if nvrGreaterOrEqual "osbuild-composer" "41"; then
|
||||
# 0 - osbuild-composer == v41
|
||||
# 11 - osbuild-composer > v41
|
||||
# 12 - osbuild-composer < v41
|
||||
echo "INFO: enabling osbuild-dnf-json-tests"
|
||||
TEST_CASES+=("osbuild-dnf-json-tests")
|
||||
fi
|
||||
|
||||
# Print out a nice test divider so we know when tests stop and start.
|
||||
test_divider () {
|
||||
printf "%0.s-" {1..78} && echo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue