ci: use pytest-embedded 0.5.1

pull/8291/head
Fu Hanxi 2022-01-20 17:39:30 +08:00
rodzic ea4673a3a2
commit 90f8d27985
8 zmienionych plików z 16 dodań i 13 usunięć

Wyświetl plik

@ -70,7 +70,7 @@ variables:
TEST_ENV_CONFIG_REPO: "https://gitlab-ci-token:${BOT_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/qa/ci-test-runner-configs.git"
CI_AUTO_TEST_SCRIPT_REPO_URL: "https://gitlab-ci-token:${BOT_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/qa/auto_test_script.git"
CI_AUTO_TEST_SCRIPT_REPO_BRANCH: "ci/v4.1"
PYTEST_EMBEDDED_TAG: "v0.4.5"
PYTEST_EMBEDDED_TAG: "v0.5.1"
# cache python dependencies
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

Wyświetl plik

@ -1,8 +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.dut import Dut
from pytest_embedded import Dut
@pytest.mark.esp32

Wyświetl plik

@ -1,8 +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.dut import Dut
from pytest_embedded import Dut
from pytest_embedded_idf.app import IdfApp

Wyświetl plik

@ -2,7 +2,7 @@
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded.dut import Dut
from pytest_embedded import Dut
@pytest.mark.supported_targets

Wyświetl plik

@ -2,7 +2,7 @@
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded.dut import Dut
from pytest_embedded import Dut
@pytest.mark.supported_targets

Wyświetl plik

@ -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':

Wyświetl plik

@ -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':

Wyświetl plik

@ -4,6 +4,7 @@ python_files = pytest_*.py
# ignore PytestExperimentalApiWarning for record_xml_attribute
addopts =
-s
--embedded-services esp,idf
-W ignore::_pytest.warning_types.PytestExperimentalApiWarning
@ -19,7 +20,6 @@ markers =
all_targets: support all targets, including supported ones and preview ones
# log related
log_auto_indent = True
log_cli = True
log_cli_level = INFO
log_cli_format = %(asctime)s %(levelname)s %(message)s
@ -27,6 +27,7 @@ log_cli_date_format = %Y-%m-%d %H:%M:%S
# junit related
junit_family = xunit1
## log all to `system-out` when case fail
junit_logging = log
junit_logging = stdout
junit_log_passing_tests = False