Fix image test VERSION_ID

On RHEL, `VERSION_ID` shows up as `8.2` or `8.3`, but we need it to be
just `8`.

Remove the period and everything after it in `$VERSION_ID`.

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2020-06-11 14:37:50 -05:00 committed by Major Hayden
parent 1e5c31a7ad
commit d607365663

View file

@ -26,7 +26,7 @@ test_divider () {
# Get the full test case name based on distro and architecture.
get_full_test_case () {
echo "${IMAGE_TEST_CASES_PATH}/${ID}_${VERSION_ID}-$(uname -m)-${1}"
echo "${IMAGE_TEST_CASES_PATH}/${ID}_${VERSION_ID%.*}-$(uname -m)-${1}"
}
# Run a test case and store the result as passed or failed.