From 79598b1db7f640cb86a78679139f3917817473d0 Mon Sep 17 00:00:00 2001 From: Omar Chebib Date: Mon, 5 Sep 2022 12:25:36 +0800 Subject: [PATCH] Flash: fix flash_suspend example to include worst case flash_suspend example will now test the worst case in order to be able to detect real regression: - shorter response time is acceptable, as the tested function may be in the cache already - response time longer than 120us will be considered a potential regression --- examples/system/flash_suspend/pytest_flash_suspend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/system/flash_suspend/pytest_flash_suspend.py b/examples/system/flash_suspend/pytest_flash_suspend.py index 0929a6b6ad..603233dc52 100644 --- a/examples/system/flash_suspend/pytest_flash_suspend.py +++ b/examples/system/flash_suspend/pytest_flash_suspend.py @@ -14,7 +14,7 @@ def test_flash_suspend_example(dut: Dut) -> None: dut.expect_exact('found partition') res = dut.expect(r'During Erase, ISR callback function\(in flash\) response time:\s+(\d+(\.\d{1,2})) us') response_time = res.group(1).decode('utf8') - assert 0 <= float(response_time) < 40 + assert 0 <= float(response_time) < 120 res = dut.expect(r'During Erase, ISR callback function\(in iram\) response time:\s+(\d+(\.\d{1,2})) us') response_time = res.group(1).decode('utf8')