diff options
| author | Tom Rini <trini@konsulko.com> | 2024-01-08 12:00:18 -0500 | 
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-01-08 12:00:18 -0500 | 
| commit | 93d91e9485d902a1836a22e72d1a545b587adf36 (patch) | |
| tree | f368b4e3c2220e7cd34c83bf192d8b674158d16b /test/py/tests/test_efi_secboot/test_signed.py | |
| parent | 866ca972d6c3cabeaf6dbac431e8e08bb30b3c8e (diff) | |
| parent | f28a77589e7505535a4eebdc7269df98f67dbe68 (diff) | |
Merge branch 'next'
Diffstat (limited to 'test/py/tests/test_efi_secboot/test_signed.py')
| -rw-r--r-- | test/py/tests/test_efi_secboot/test_signed.py | 42 | 
1 files changed, 21 insertions, 21 deletions
| diff --git a/test/py/tests/test_efi_secboot/test_signed.py b/test/py/tests/test_efi_secboot/test_signed.py index ca52e853d8f..2f862a259ad 100644 --- a/test/py/tests/test_efi_secboot/test_signed.py +++ b/test/py/tests/test_efi_secboot/test_signed.py @@ -29,7 +29,7 @@ class TestEfiSignedImage(object):              output = u_boot_console.run_command_list([                  'host bind 0 %s' % disk_img,                  'efidebug boot add -b 1 HELLO1 host 0:1 /helloworld.efi.signed -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'bootefi bootmgr'])              assert 'Hello, world!' in ''.join(output) @@ -37,7 +37,7 @@ class TestEfiSignedImage(object):              # Test Case 1b, run unsigned image if no PK              output = u_boot_console.run_command_list([                  'efidebug boot add -b 2 HELLO2 host 0:1 /helloworld.efi -s ""', -                'efidebug boot next 2', +                'efidebug boot order 2',                  'bootefi bootmgr'])              assert 'Hello, world!' in ''.join(output) @@ -59,13 +59,13 @@ class TestEfiSignedImage(object):              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([                  'efidebug boot add -b 1 HELLO1 host 0:1 /helloworld.efi.signed -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert('\'HELLO1\' failed' in ''.join(output))              assert('efi_start_image() returned: 26' in ''.join(output))              output = u_boot_console.run_command_list([                  'efidebug boot add -b 2 HELLO2 host 0:1 /helloworld.efi -s ""', -                'efidebug boot next 2', +                'efidebug boot order 2',                  'efidebug test bootmgr'])              assert '\'HELLO2\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -77,12 +77,12 @@ class TestEfiSignedImage(object):                  'setenv -e -nv -bs -rt -at -i 4000000:$filesize db'])              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([ -                'efidebug boot next 2', +                'efidebug boot order 2',                  'efidebug test bootmgr'])              assert '\'HELLO2\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output)              output = u_boot_console.run_command_list([ -                'efidebug boot next 1', +                'efidebug boot order 1',                  'bootefi bootmgr'])              assert 'Hello, world!' in ''.join(output) @@ -105,7 +105,7 @@ class TestEfiSignedImage(object):              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([                  'efidebug boot add -b 1 HELLO host 0:1 /helloworld.efi.signed -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -117,7 +117,7 @@ class TestEfiSignedImage(object):                  'setenv -e -nv -bs -rt -at -i 4000000:$filesize db'])              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([ -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -143,7 +143,7 @@ class TestEfiSignedImage(object):              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([                  'efidebug boot add -b 1 HELLO host 0:1 /helloworld.efi.signed -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -170,7 +170,7 @@ class TestEfiSignedImage(object):              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([                  'efidebug boot add -b 1 HELLO host 0:1 /helloworld.efi.signed_2sigs -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert 'Hello, world!' in ''.join(output) @@ -181,7 +181,7 @@ class TestEfiSignedImage(object):                  'setenv -e -nv -bs -rt -at -a -i 4000000:$filesize db'])              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([ -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert 'Hello, world!' in ''.join(output) @@ -193,7 +193,7 @@ class TestEfiSignedImage(object):                  'setenv -e -nv -bs -rt -at -i 4000000:$filesize dbx'])              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([ -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -205,7 +205,7 @@ class TestEfiSignedImage(object):                  'setenv -e -nv -bs -rt -at -a -i 4000000:$filesize dbx'])              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([ -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -230,7 +230,7 @@ class TestEfiSignedImage(object):              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([                  'efidebug boot add -b 1 HELLO host 0:1 /helloworld.efi.signed_2sigs -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -254,7 +254,7 @@ class TestEfiSignedImage(object):              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([                  'efidebug boot add -b 1 HELLO host 0:1 /helloworld.efi.signed -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'bootefi bootmgr'])              assert 'Hello, world!' in ''.join(output) @@ -265,7 +265,7 @@ class TestEfiSignedImage(object):                  'setenv -e -nv -bs -rt -at -i 4000000:$filesize dbx'])              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([ -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -279,7 +279,7 @@ class TestEfiSignedImage(object):                  'setenv -e -nv -bs -rt -at -i 4000000:$filesize dbx'])              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([ -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -307,7 +307,7 @@ class TestEfiSignedImage(object):              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([                  'efidebug boot add -b 1 HELLO host 0:1 /helloworld.efi.signed_2sigs -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -330,7 +330,7 @@ class TestEfiSignedImage(object):              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([                  'efidebug boot add -b 1 HELLO host 0:1 /helloworld.efi.signed_2sigs -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert '\'HELLO\' failed' in ''.join(output)              assert 'efi_start_image() returned: 26' in ''.join(output) @@ -349,7 +349,7 @@ class TestEfiSignedImage(object):              output = u_boot_console.run_command_list([                  'host bind 0 %s' % disk_img,                  'efidebug boot add -b 1 HELLO1 host 0:1 /helloworld_forged.efi.signed -s ""', -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert('hELLO, world!' in ''.join(output)) @@ -364,7 +364,7 @@ class TestEfiSignedImage(object):                  'setenv -e -nv -bs -rt -at -i 4000000:$filesize PK'])              assert 'Failed to set EFI variable' not in ''.join(output)              output = u_boot_console.run_command_list([ -                'efidebug boot next 1', +                'efidebug boot order 1',                  'efidebug test bootmgr'])              assert(not 'hELLO, world!' in ''.join(output))              assert('\'HELLO1\' failed' in ''.join(output)) | 
