Skip to content

Commit

Permalink
Do not import private method
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Reis <[email protected]>
  • Loading branch information
benjamreis committed Dec 2, 2024
1 parent d938e3f commit 2a59861
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/uefi_sb/test_uefistored_sb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from lib.commands import SSHCommandFailed
from lib.common import wait_for

from .utils import _test_key_exchanges, boot_and_check_no_sb_errors, boot_and_check_sb_failed, \
from .utils import test_key_exchanges, boot_and_check_no_sb_errors, boot_and_check_sb_failed, \
boot_and_check_sb_succeeded, generate_keys, revert_vm_state, sign_efi_bins, VM_SECURE_BOOT_FAILED

# These tests check the behaviour of XAPI and uefistored as they are in XCP-ng 8.2
Expand Down Expand Up @@ -216,4 +216,4 @@ def setup_and_cleanup(self, uefi_vm_and_snapshot):
def test_key_exchanges(self, uefi_vm):
vm = uefi_vm

_test_key_exchanges(vm)
test_key_exchanges(vm)
4 changes: 2 additions & 2 deletions tests/uefi_sb/test_varstored_sb.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import pytest

from .utils import _test_key_exchanges, boot_and_check_no_sb_errors, boot_and_check_sb_failed, \
from .utils import test_key_exchanges, boot_and_check_no_sb_errors, boot_and_check_sb_failed, \
boot_and_check_sb_succeeded, generate_keys, revert_vm_state, sign_efi_bins

# These tests check the behaviour of XAPI and varstored as they are in XCP-ng 8.3
Expand Down Expand Up @@ -152,4 +152,4 @@ def test_key_exchanges(self, uefi_vm):
vm = uefi_vm
vm.set_uefi_setup_mode()

_test_key_exchanges(vm)
test_key_exchanges(vm)
2 changes: 1 addition & 1 deletion tests/uefi_sb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sign_efi_bins(vm, db):
if shutdown:
vm.shutdown(verify=True)

def _test_key_exchanges(vm):
def test_key_exchanges(vm):
PK = EFIAuth('PK')
null_PK = EFIAuth('PK', is_null=True)
new_PK = EFIAuth('PK')
Expand Down

0 comments on commit 2a59861

Please sign in to comment.