test: use DISTRO_CODE to select tests case
Using DISTRO_CODE simplifies test case selection and allows to test different distro than the one test is running on. This is used to run tests for RHEL 9.0 on F33 or RHEL 8.4
This commit is contained in:
parent
af1a2b5cd4
commit
165ecafeb2
7 changed files with 94 additions and 37 deletions
|
|
@ -25,13 +25,7 @@ test_divider () {
|
|||
|
||||
# Get a list of test cases.
|
||||
get_test_cases () {
|
||||
# if the distro is RHEL 8.4 the test case selector needs the minor release number
|
||||
if [[ "${ID}-${VERSION_ID}" == "rhel-8.4" ]]; then
|
||||
TEST_CASE_SELECTOR="${ID}_${VERSION_ID//.}-${ARCH}"
|
||||
# otherwise the minor release number can be dropped
|
||||
else
|
||||
TEST_CASE_SELECTOR="${ID}_${VERSION_ID%.*}-${ARCH}"
|
||||
fi
|
||||
TEST_CASE_SELECTOR="${DISTRO_CODE}-${ARCH}"
|
||||
pushd $IMAGE_TEST_CASES_PATH > /dev/null
|
||||
ls "$TEST_CASE_SELECTOR"*.json
|
||||
popd > /dev/null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue