File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
tests/integration/tier1/destructive/detect-bootloader-partition Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1- import platform
21import subprocess
32
43from conftest import TEST_VARS
5-
4+ from test_helpers . common_functions import SystemInformationRelease
65
76EFI_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 (
You can’t perform that action at this time.
0 commit comments