Files
SDK_SG200x_V2/u-boot-2021.10/test/py/tests/test_scp03.py
carbon 0545e9dc6d init version 2024-05-07
commit d1edce71135cc6d98c0a4b5729774542b676e769
Author: sophgo-forum-service <forum_service@sophgo.com>
Date:   Fri Mar 15 16:07:33 2024 +0800

    [fix] recommend using ssh method to clone repo.
    [fix] fix sensor driver repo branch name.
2024-05-07 19:36:36 +08:00

28 lines
638 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 u_boot_utils as util
@pytest.mark.buildconfigspec('cmd_scp03')
def test_scp03(u_boot_console):
"""Enable and provision keys with SCP03
"""
success_str1 = "SCP03 is enabled"
success_str2 = "SCP03 is provisioned"
response = u_boot_console.run_command('scp03 enable')
assert success_str1 in response
response = u_boot_console.run_command('scp03 provision')
assert success_str2 in response