From 49b40f19999de746a48efaa9e77119f7e76e487f Mon Sep 17 00:00:00 2001 From: jingli Date: Wed, 1 Mar 2023 21:02:11 +0800 Subject: [PATCH] esp32c2/ci: reenable deep sleep example test --- examples/system/.build-test-rules.yml | 4 ++-- examples/system/deep_sleep/README.md | 4 ++-- examples/system/deep_sleep/pytest_deep_sleep.py | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/examples/system/.build-test-rules.yml b/examples/system/.build-test-rules.yml index 9068f4550e..94f013d152 100644 --- a/examples/system/.build-test-rules.yml +++ b/examples/system/.build-test-rules.yml @@ -40,9 +40,9 @@ examples/system/console/basic: examples/system/deep_sleep: disable: - - if: IDF_TARGET in ["esp32c2", "esp32h2"] + - if: IDF_TARGET in ["esp32h2"] temporary: true - reason: target(s) not supported yet # IDF-5432 / IDF-6268 + reason: target(s) not supported yet # IDF-6268 examples/system/deep_sleep_wake_stub: disable: diff --git a/examples/system/deep_sleep/README.md b/examples/system/deep_sleep/README.md index a57e61f2ee..dc1443740b 100644 --- a/examples/system/deep_sleep/README.md +++ b/examples/system/deep_sleep/README.md @@ -1,5 +1,5 @@ -| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 | -| ----------------- | ----- | -------- | -------- | -------- | -------- | +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | # Deep Sleep Example diff --git a/examples/system/deep_sleep/pytest_deep_sleep.py b/examples/system/deep_sleep/pytest_deep_sleep.py index 098158672f..0ab6dc4068 100644 --- a/examples/system/deep_sleep/pytest_deep_sleep.py +++ b/examples/system/deep_sleep/pytest_deep_sleep.py @@ -12,7 +12,7 @@ touch_wake_up_support = ['esp32', 'esp32s2'] 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.esp32c6]), + pytest.param('basic', marks=[pytest.mark.esp32, pytest.mark.esp32s2, pytest.mark.esp32s3, pytest.mark.esp32c3, pytest.mark.esp32c6, pytest.mark.esp32c2]), ] @@ -60,7 +60,9 @@ def test_deep_sleep(dut: Dut) -> None: # This line indicates that the CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP option set in sdkconfig.defaults # has correctly allowed skipping verification on wakeup - dut.expect_exact('boot: Fast booting app from partition', timeout=2) + # Note: this feature depends on rtc mem + if dut.app.sdkconfig.get('SOC_RTC_MEM_SUPPORTED') is True: + dut.expect_exact('boot: Fast booting app from partition', timeout=2) # 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)