summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2018-09-25 16:40:21 +0200
committerTom Rini <trini@konsulko.com>2018-10-07 11:07:26 -0400
commit07cbae767293dcf07cfc76cd494b8045ef4a8d7e (patch)
tree06eaa981e41bd1ef2ea2abb3abc79fe73f00d2ab
parent6663e074780912b01c09afd0c139f29825f7775c (diff)
downloadu-boot-07cbae767293dcf07cfc76cd494b8045ef4a8d7e.tar.gz
u-boot-07cbae767293dcf07cfc76cd494b8045ef4a8d7e.tar.bz2
u-boot-07cbae767293dcf07cfc76cd494b8045ef4a8d7e.zip
test_avb: Update pymark.buildconfigspec information for the AVB tests
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>
-rw-r--r--test/py/tests/test_avb.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/py/tests/test_avb.py b/test/py/tests/test_avb.py
index 7996e4845d..9683fd80d0 100644
--- a/test/py/tests/test_avb.py
+++ b/test/py/tests/test_avb.py
@@ -23,7 +23,7 @@ mmc_dev = 1
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
"""
@@ -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
@@ -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')
@@ -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
"""