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,16 +1,21 @@
|
||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-FileCopyrightText: 2022-2026 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
import pytest
|
||||
from pytest_embedded import Dut
|
||||
from pytest_embedded_idf.utils import idf_parametrize
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.generic
|
||||
@idf_parametrize('target', ['esp32'], indirect=['target'])
|
||||
def test_himem(dut: Dut) -> None:
|
||||
|
||||
mem = dut.expect(r'esp_himem: Initialized. Using last \d+ 32KB address blocks for bank '
|
||||
r'switching on (\d+) KB of physical memory.').group(1).decode('utf8')
|
||||
mem = (
|
||||
dut.expect(
|
||||
r'esp_himem: Initialized. Using last \d+ 32KB address blocks for bank '
|
||||
r'switching on (\d+) KB of physical memory.'
|
||||
)
|
||||
.group(1)
|
||||
.decode('utf8')
|
||||
)
|
||||
|
||||
dut.expect(r'Himem has {}KiB of memory, \d+KiB of which is free.'.format(mem), timeout=10)
|
||||
dut.expect_exact('Testing the free memory...')
|
||||
|
||||
Reference in New Issue
Block a user