Skip to content

Commit f21f6cf

Browse files
authored
tests/Fix a leftover missing el9 setup (#1442)
1 parent 940e048 commit f21f6cf

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/integration/tier1/destructive/detect-bootloader-partition/test_detect_correct_boot_partition.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
import platform
21
import subprocess
32

43
from conftest import TEST_VARS
5-
4+
from test_helpers.common_functions import SystemInformationRelease
65

76
EFI_BOOT_MOUNTPOINT = "/boot/efi"
8-
SYSTEM_RELEASE = platform.platform()
97

108
# TODO(danmyway): We need to include another test case in this to verify that
119
# Convert2RHEL can detect the correct partition even though it will not be in
@@ -45,10 +43,7 @@ def test_detect_correct_boot_partition(convert2rhel):
4543
boot_device_name = get_device_name(boot_device)
4644
boot_partition = get_device_partition(boot_device)
4745

48-
rhel_version = "8"
49-
50-
if "centos-7" in SYSTEM_RELEASE or "oracle-7" in SYSTEM_RELEASE:
51-
rhel_version = "7"
46+
rhel_version = SystemInformationRelease.version.major
5247

5348
with convert2rhel(
5449
"-y --serverurl {} --username {} --password {} --debug".format(

0 commit comments

Comments
 (0)