Skip to content

Commit

Permalink
xcpng-fs-diff: new test to check against reference files
Browse files Browse the repository at this point in the history
Tests for generation of the reference files, and for checking against them.

Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Oct 4, 2024
1 parent 9801f30 commit 850960d
Show file tree
Hide file tree
Showing 4 changed files with 69,762 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,3 +566,8 @@ def enable_hsts_header(self):
def disable_hsts_header(self):
self.ssh(['rm', '-f', f'{XAPI_CONF_DIR}/00-XCP-ng-tests-enable-hsts-header.conf'])
self.restart_toolstack(verify=True)

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"
Loading

0 comments on commit 850960d

Please sign in to comment.