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

fsdiff enhancements to diff against a reference dump #260

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ydirson
Copy link
Contributor

@ydirson ydirson commented Oct 4, 2024

No description provided.

This is not meant to be a fixture anyway.

Signed-off-by: Yann Dirson <[email protected]>
This suppresses hostkey checking, making the script more suitable
for non-interactive use, and makes it easier to understand when something
goes wrong.

FIXME locate "lib" more properly

Signed-off-by: Yann Dirson <[email protected]>
Tests for generation of the reference files, and for checking against them.

Signed-off-by: Yann Dirson <[email protected]>
byte-compiled version of /etc/xapi.d/plugins/vmss

Signed-off-by: Yann Dirson <[email protected]>
@ydirson ydirson requested review from stormi and tescande October 4, 2024 12:31
@@ -5,7 +5,6 @@
# Requirements:
# - 2 XCP-ng host of same version

pytest.fixture(scope='module')
Copy link
Member

Choose a reason for hiding this comment

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

This one is fun :) Nice catch.

Comment on lines +570 to +573
def firmware_type(self):
retcode = self.ssh(['test', '-d', '/sys/firmware/efi/'],
check=False, simple_output=False).returncode
return "uefi" if retcode == 0 else "bios"
Copy link
Member

Choose a reason for hiding this comment

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

In the VM object, there's is_uefi(). Would it make sense to be consistent with it?

Copy link
Member

Choose a reason for hiding this comment

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

Reference files will keep evolving when we test nightly builds, so does it make sense to store them here? How about we give the test a location where it can download them from if they exist, that we would populate after each nightly build?

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.

2 participants