ci: remove temp deepsleep tag runner

This commit is contained in:
Marius Vikhammer
2022-06-23 17:26:51 +08:00
parent 45ba00544a
commit e4cbaa6f2b
6 changed files with 16 additions and 58 deletions
@@ -10,7 +10,15 @@ from pytest_embedded import Dut
touch_wake_up_support = ['esp32', 'esp32s2']
def deep_sleep_test(dut: Dut) -> None:
CONFIGS = [
pytest.param('esp32_singlecore', marks=[pytest.mark.esp32]),
pytest.param('basic', marks=[pytest.mark.esp32, pytest.mark.esp32s2, pytest.mark.esp32s3, pytest.mark.esp32c3]),
]
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
@pytest.mark.generic
def test_deep_sleep(dut: Dut) -> None:
def expect_enable_deep_sleep_touch() -> None:
# different targets configure different wake pin(s)
@@ -57,26 +65,3 @@ def deep_sleep_test(dut: Dut) -> None:
# Check that it measured 2xxxxms in deep sleep, i.e at least 20 seconds:
dut.expect(r'Wake up from timer. Time spent in deep sleep: 2\d{4}ms', timeout=2)
expect_enable_deep_sleep()
CONFIGS = [
pytest.param('esp32_singlecore', marks=[pytest.mark.esp32]),
pytest.param('basic', marks=[pytest.mark.esp32, pytest.mark.esp32c3]),
]
@pytest.mark.parametrize('config', CONFIGS, indirect=True)
@pytest.mark.generic
def test_deep_sleep(dut: Dut) -> None:
deep_sleep_test(dut)
CONFIGS_S2_S3 = [
pytest.param('basic', marks=[pytest.mark.esp32s2, pytest.mark.esp32s3]), # S2/S3 runner on isolated runners for now, IDF-5213
]
@pytest.mark.parametrize('config', CONFIGS_S2_S3, indirect=True)
@pytest.mark.deepsleep_temp_tag
def test_deep_sleep_s2_s3(dut: Dut) -> None:
deep_sleep_test(dut)
+5 -15
View File
@@ -8,8 +8,11 @@ import pytest
from pytest_embedded import Dut
def ulp_fsm_test_function(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.generic
def test_ulp_fsm(dut: Dut) -> None:
dut.expect_exact('Not ULP wakeup')
dut.expect_exact('Entering deep sleep')
@@ -39,16 +42,3 @@ def ulp_fsm_test_function(dut: Dut) -> None:
nvs_value = new_count
logging.info('Pulse count written to NVS: {}. Entering deep sleep...'.format(nvs_value))
dut.expect_exact('Entering deep sleep', timeout=5)
@pytest.mark.esp32
@pytest.mark.generic
def test_ulp_fsm(dut: Dut) -> None:
ulp_fsm_test_function(dut)
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.deepsleep_temp_tag # S2/S3 runner on isolated runners for now, IDF-5213
def test_ulp_fsm_s2_s3(dut: Dut) -> None:
ulp_fsm_test_function(dut)
@@ -10,7 +10,7 @@ from pytest_embedded import Dut
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.deepsleep_temp_tag
@pytest.mark.generic
def test_ulp_riscv_gpio(dut: Dut) -> None:
dut.expect_exact('Not a ULP-RISC-V wakeup, initializing it!')