Skip to content

Commit

Permalink
test_avb: Update pymark.buildconfigspec information for the AVB tests
Browse files Browse the repository at this point in the history
Update the pymark.buildconfigspec to depend on 'cmd_mmc' in addition to
'cmd_avb' for those tests that needs more a more complete MMC
implementation or the "mmc" command.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
jenswi-linaro authored and trini committed Oct 7, 2018
1 parent 6663e07 commit 07cbae7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/py/tests/test_avb.py
Expand Up @@ -23,7 +23,7 @@
temp_addr = 0x90000000
temp_addr2 = 0x90002000

@pytest.mark.buildconfigspec('cmd_avb')
@pytest.mark.buildconfigspec('cmd_avb', 'cmd_mmc')
def test_avb_verify(u_boot_console):
"""Run AVB 2.0 boot verification chain with avb subset of commands
"""
Expand All @@ -36,7 +36,7 @@ def test_avb_verify(u_boot_console):
assert response.find(success_str)


@pytest.mark.buildconfigspec('cmd_avb')
@pytest.mark.buildconfigspec('cmd_avb', 'cmd_mmc')
def test_avb_mmc_uuid(u_boot_console):
"""Check if 'avb get_uuid' works, compare results with
'part list mmc 1' output
Expand Down Expand Up @@ -78,6 +78,7 @@ def test_avb_read_rb(u_boot_console):
assert response == ''

response = u_boot_console.run_command('avb read_rb 1')
assert response == 'Rollback index: 0'


@pytest.mark.buildconfigspec('cmd_avb')
Expand All @@ -89,9 +90,10 @@ def test_avb_is_unlocked(u_boot_console):
assert response == ''

response = u_boot_console.run_command('avb is_unlocked')
assert response == 'Unlocked = 1'


@pytest.mark.buildconfigspec('cmd_avb')
@pytest.mark.buildconfigspec('cmd_avb', 'cmd_mmc')
def test_avb_mmc_read(u_boot_console):
"""Test mmc read operation
"""
Expand Down

0 comments on commit 07cbae7

Please sign in to comment.