mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
test: format all test scripts
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
import pytest
|
||||
from pytest_embedded import Dut
|
||||
from pytest_embedded_idf.utils import idf_parametrize
|
||||
|
||||
|
||||
@pytest.mark.linux
|
||||
@pytest.mark.host_test
|
||||
@idf_parametrize('target', ['linux'], indirect=['target'])
|
||||
def test_esp_event_linux(dut: Dut) -> None:
|
||||
dut.expect_exact('All tests passed', timeout=5)
|
||||
|
||||
@@ -67,7 +67,7 @@ def test_esp_event_profiling(dut: Dut) -> None:
|
||||
# with an execution time superior to 0 us
|
||||
matches = dut.expect(r'HANDLER .+ inv:[1-9][0-9]{0,} time:[1-9][0-9]{0,} us', timeout=2)
|
||||
matches_arr = matches.group().split(b'\r\n')
|
||||
assert (len(matches_arr) == 3)
|
||||
assert len(matches_arr) == 3
|
||||
dut.expect('1 Tests 0 Failures 0 Ignored', timeout=120)
|
||||
dut.expect_exact("Enter next test, or 'enter' to see menu")
|
||||
|
||||
@@ -75,7 +75,7 @@ def test_esp_event_profiling(dut: Dut) -> None:
|
||||
# look for 1 handlers never invoked
|
||||
matches = dut.expect(r'HANDLER .+ inv:0 time:0 us', timeout=2)
|
||||
matches_arr = matches.group().split(b'\r\n')
|
||||
assert (len(matches_arr) == 1)
|
||||
assert len(matches_arr) == 1
|
||||
dut.expect('1 Tests 0 Failures 0 Ignored', timeout=120)
|
||||
dut.expect_exact("Enter next test, or 'enter' to see menu")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user