Commit 534cdad
committed
zephyr-cp tests: let a capture test stop the simulator at its duration
A display test with scheduled captures holds its last frame in
`while True: time.sleep(1)`, so native_sim never exits on its own and
wait_until_done() waits out the whole wall-clock timeout: every capture
test takes exactly its duration, 346 s for the 26 display tests.
Pass the duration as -stop_at so the simulator ends the run itself. In
-no-rt the idle loop is fast-forwarded: gifio 60 s -> 2 s, the display
suite 346 s -> 19 s, goldens unchanged. Realtime tests are left alone.1 parent e6bf001 commit 534cdad
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
| |||
0 commit comments