mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00

We know this is U-Boot so the prefix serves no purpose other than to make things longer and harder to read. Drop it and rename the files. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # test_android / test_dfu
27 lines
604 B
Python
27 lines
604 B
Python
# Copyright (c) 2021 Foundries.io Ltd
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# SCP03 command test
|
|
|
|
"""
|
|
This tests SCP03 command in U-Boot.
|
|
|
|
For additional details check doc/usage/scp03.rst
|
|
"""
|
|
|
|
import pytest
|
|
import utils as util
|
|
|
|
@pytest.mark.buildconfigspec('cmd_scp03')
|
|
def test_scp03(ubman):
|
|
"""Enable and provision keys with SCP03
|
|
"""
|
|
|
|
success_str1 = "SCP03 is enabled"
|
|
success_str2 = "SCP03 is provisioned"
|
|
|
|
response = ubman.run_command('scp03 enable')
|
|
assert success_str1 in response
|
|
response = ubman.run_command('scp03 provision')
|
|
assert success_str2 in response
|