2022-01-20 09:39:30 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
2021-11-17 09:09:36 +00:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
import pytest
|
2022-01-20 09:39:30 +00:00
|
|
|
from pytest_embedded import Dut
|
2021-11-17 09:09:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.esp32
|
|
|
|
@pytest.mark.esp32c3
|
|
|
|
@pytest.mark.generic
|
|
|
|
@pytest.mark.parametrize('config', [
|
|
|
|
'history',
|
|
|
|
'nohistory',
|
|
|
|
], indirect=True)
|
2022-01-20 09:39:30 +00:00
|
|
|
def test_console_advanced(config: str, dut: Dut) -> None:
|
2021-11-17 09:09:36 +00:00
|
|
|
if config == 'history':
|
|
|
|
dut.expect('Command history enabled')
|
|
|
|
elif config == 'nohistory':
|
|
|
|
dut.expect('Command history disabled')
|