test: use hyphen in DISTRO_CODE instead of underscore

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-07-09 12:13:31 +02:00 committed by Ondřej Budai
parent 4c5d1ae45a
commit 27693b1949
4 changed files with 4 additions and 7 deletions

View file

@ -22,7 +22,7 @@ fi
# Skip 'selinux/contect-mismatch' part of the image-info report on RHEL-8.
# https://bugzilla.redhat.com/show_bug.cgi?id=1973754
if [[ "${DISTRO_CODE}" =~ "rhel_8" ]]; then
if [[ "${DISTRO_CODE}" =~ "rhel-8" ]]; then
IMAGE_TEST_CASE_RUNNER="${IMAGE_TEST_CASE_RUNNER} -skip-selinux-ctx-check"
fi