mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(hal): Fixed crypto test app
Previously the crypto test app was not verifying that the no of failures is 0. Added the check to verify that
This commit is contained in:
parent
d41c9d948d
commit
e5fcc2d315
@ -1,4 +1,4 @@
|
||||
# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
import os
|
||||
|
||||
@ -13,6 +13,11 @@ def test_crypto(dut: Dut) -> None:
|
||||
# as tests for efuses burning security peripherals would be run
|
||||
timeout = 600 if os.environ.get('IDF_ENV_FPGA') else 60
|
||||
|
||||
test_numbers = dut.expect(r'(\d+) Tests (\d+) Failures (\d+) Ignored', timeout=timeout)
|
||||
failures = test_numbers.group(2).decode()
|
||||
ignored = test_numbers.group(3).decode()
|
||||
assert failures == '0', f'No of failures must be 0 (is {failures})'
|
||||
assert ignored == '0', f'No of Ignored test must be 0 (is {ignored})'
|
||||
dut.expect('Tests finished', timeout=timeout)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user