From 18356cd124f1bbbbeb4c3cc162f4027982ed2dff Mon Sep 17 00:00:00 2001 From: laokaiyao Date: Mon, 8 Aug 2022 16:15:20 +0800 Subject: [PATCH] i2s: fixed duplicated test case name --- .../legacy_i2s_driver/main/test_legacy_i2s.c | 2 +- .../i2s/i2s_codec/i2s_es8311/pytest_i2s_es8311.py | 6 +++--- .../peripherals/i2s/i2s_recorder/pytest_i2s_record.py | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/test_legacy_i2s.c b/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/test_legacy_i2s.c index 7d87bfc643..4cfb4e5bab 100644 --- a/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/test_legacy_i2s.c +++ b/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/test_legacy_i2s.c @@ -243,7 +243,7 @@ static bool whether_contains_exapected_data(uint16_t *src, uint32_t src_len, uin * 2. Check rx right mono and left mono (requiring tx works in stereo mode) * 3. Check tx mono (requiring rx works in stereo mode) */ -TEST_CASE("I2S_mono_stereo_loopback_test", "[i2s_legacy]") +TEST_CASE("I2S_legacy_mono_stereo_loopback_test", "[i2s_legacy]") { #define WRITE_BUF_LEN 2000 #define READ_BUF_LEN 4000 diff --git a/examples/peripherals/i2s/i2s_codec/i2s_es8311/pytest_i2s_es8311.py b/examples/peripherals/i2s/i2s_codec/i2s_es8311/pytest_i2s_es8311.py index 51fb648239..19d6c36ac9 100644 --- a/examples/peripherals/i2s/i2s_codec/i2s_es8311/pytest_i2s_es8311.py +++ b/examples/peripherals/i2s/i2s_codec/i2s_es8311/pytest_i2s_es8311.py @@ -11,6 +11,6 @@ from pytest_embedded import Dut @pytest.mark.esp32c3 @pytest.mark.generic def test_i2s_es8311_example_generic(dut: Dut) -> None: - dut.expect('i2s es8311 codec example start', timeout=30) - dut.expect('-----------------------------', timeout=30) - dut.expect('I \\(([0-9]+)\\) i2s_es8311: i2s driver init success', timeout=30) + dut.expect('i2s es8311 codec example start') + dut.expect('-----------------------------') + dut.expect('I \\(([0-9]+)\\) i2s_es8311: i2s driver init success') diff --git a/examples/peripherals/i2s/i2s_recorder/pytest_i2s_record.py b/examples/peripherals/i2s/i2s_recorder/pytest_i2s_record.py index 7d3e48e51f..bc9ee9e5c1 100644 --- a/examples/peripherals/i2s/i2s_recorder/pytest_i2s_record.py +++ b/examples/peripherals/i2s/i2s_recorder/pytest_i2s_record.py @@ -7,7 +7,7 @@ from pytest_embedded import Dut @pytest.mark.esp32 @pytest.mark.esp32s3 @pytest.mark.generic -def test_i2s_es8311_example_generic(dut: Dut) -> None: - dut.expect('PDM microphone recording example start', timeout=30) - dut.expect('--------------------------------------', timeout=30) - dut.expect('I \\(([0-9]+)\\) pdm_rec_example: Initializing SD card', timeout=30) +def test_i2s_recoder_generic(dut: Dut) -> None: + dut.expect('PDM microphone recording example start') + dut.expect('--------------------------------------') + dut.expect('I \\(([0-9]+)\\) pdm_rec_example: Initializing SD card')