Skip to content

Commit

Permalink
Debug SCP
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Verschelde <[email protected]>
  • Loading branch information
stormi committed Feb 29, 2024
1 parent b59e7ad commit 1babc74
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/uefi_sb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,8 @@ def _test_key_exchanges(vm):
logging.info('> Testing {} ({})'.format(auth.name, i))

ok = True
try:
vm.set_efi_var(auth.name, auth.guid,
EFI_AT_ATTRS_BYTES, auth.auth_data)
except SSHCommandFailed:
ok = False

if (should_succeed and not ok) or (ok and not should_succeed):
raise AssertionError('Failed to set {} {}'.format(i, auth.name))
vm.set_efi_var(auth.name, auth.guid,
EFI_AT_ATTRS_BYTES, auth.auth_data)

def check_disk_cert_md5sum(host, key, reference_file, do_assert=True):
auth_filepath_on_host = f'{host.varstore_dir()}/{key}.auth'
Expand Down

0 comments on commit 1babc74

Please sign in to comment.