Merge branch 'bugfix/fix_pytest_esp_timer_with_freertos_smp' into 'master'

freertos-smp: fix pytest_esp_timer test with FreeRTOS SMP enabled

Closes IDF-5373

See merge request espressif/esp-idf!18700
This commit is contained in:
Jiang Jiang Jian 2022-07-10 15:52:46 +08:00
commit 21a5f9713d

View File

@ -63,7 +63,7 @@ def test_esp_timer(dut: Dut) -> None:
one_shot_timer_time = int(match.group(1))
diff = start_time + ONE_SHOT_TIMER_PERIOD - one_shot_timer_time
logging.info('One-shot timer, time: {} us, diff: {}'.format(one_shot_timer_time, diff))
assert(abs(diff) < 220)
assert(abs(diff) < 350)
match = dut.expect(RESTART_REGEX, timeout=3)
start_time = int(match.group(1))