ci: use pytest-embedded 0.5.1

This commit is contained in:
Fu Hanxi
2022-01-20 17:39:30 +08:00
parent ea4673a3a2
commit 90f8d27985
8 changed files with 16 additions and 13 deletions

View File

@@ -1,7 +1,8 @@
# SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32
@@ -11,7 +12,7 @@ import pytest
'history',
'nohistory',
], indirect=True)
def test_console_advanced(config, dut): # type: ignore
def test_console_advanced(config: str, dut: Dut) -> None:
if config == 'history':
dut.expect('Command history enabled')
elif config == 'nohistory':