Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: add UEFI boot tests for dual booting with ubuntu #512

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

KKoukiou
Copy link
Contributor

No description provided.

@KKoukiou KKoukiou force-pushed the test-efi branch 3 times, most recently from 8509a01 to 928b720 Compare November 13, 2024 13:38
@KKoukiou KKoukiou marked this pull request as ready for review November 13, 2024 14:32
@@ -67,6 +67,15 @@ class TestFedoraPlansUseFreeSpace(VirtInstallMachineCase):
with b.wait_timeout(300):
p.wait_done()

# FIXME: https://bugzilla.redhat.com/show_bug.cgi?id=2325707
# This should be removed from the test
if self.efi:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where self.efi is initially defined in this base class?

@@ -153,6 +166,12 @@ class TestFedoraPlansUseFreeSpace(VirtInstallMachineCase):
self.install(needs_confirmation=True)
self.verifyDualBoot(root_one_size=14.2, root_two_size=4.7)

class TestFedoraPlansUseFreeSpaceBIOS(_TestFedoraPlansUseFreeSpace):
efi = False
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this should not be something like self.efi?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you ask

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I guess you mean that I can instead setup it in the constructor with self.efi = False. Sure.

Copy link
Contributor

@M4rtinK M4rtinK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as far as I can tell + one question. :)

@@ -44,7 +44,7 @@ class TestExistingSystemFedora(VirtInstallMachineCase):

r.check_deleted_system("Fedora Linux")

class TestFedoraPlansUseFreeSpace(VirtInstallMachineCase):
class _TestFedoraPlansUseFreeSpace(VirtInstallMachineCase):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is starting with _ to avoid the automated test discovery from picking it up, so it can work as a base class ? Still seems a little weird even if it is that case. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. I think the test discovery tool picks up everything starting with Test / test

I do use this pattern in some places more, see:
test/check-basic: def _testLogReview(self, b, m, idPrefix):
test/check-storage-mountpoints: def _testEncryptedUnlock(self, b, m):

I dont object that's weird, I can think of a new convention and change it also for the existing usages.

Sometihing like: CommonTestFedoraPlansUseFreeSpace

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think we should have something like that & have it documented somewhere as well. :) In any case, no need to block this PR on it. :)

@KKoukiou KKoukiou merged commit 7b2699c into rhinstaller:main Nov 14, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants