Closed PerMac closed 4 years ago
I think the problem can be solved by adding harness: console and regex check in sample.yaml. I've tested it and it seems to work. I can add such regex to the sample.yaml
To Reproduce
- See error
I don't see an error being quoted in this report.
Locally, with BOARD=frdm_k64f, I see:
[0/1] Flashing frdm_k64f
-- west flash: using runner pyocd
-- runners.pyocd: Flashing file: /home/pfalcon/projects-3rdparty/Embedded/Zephyr/zephyr/sanity-out/frdm_k64f/samples/posix/eventfd/sample.posix.eventfd/zephyr/zephyr.bin
[---|---|---|---|---|---|---|---|---|----]
[========================================]
DEBUG - DEVICE: About to read
DEBUG - DEVICE: Read 10 (0xa) from efd
DEBUG - DEVICE: Finished
DEBUG - Timed out while monitoring serial output on frdm_k64f
INFO - 1/1 frdm_k64f samples/posix/eventfd/sample.posix.eventfd FAILED Timeout (device 63.724s)
INFO - /mnt/hdd/projects-3rdparty/Embedded/Zephyr/zephyr/sanity-out/frdm_k64f/samples/posix/eventfd/sample.posix.eventfd/handler.log
ERROR - *** Booting Zephyr OS build zephyr-v2.2.0-3558-gcf72fe8fe987 ***
In other words, for some reason, sanitycheck for some reason, without being asked to, reads serial and waits for something, and as it can't get it, it times out, which causes error.
I agree that this needs to be fixed, but:
So again, this definitely needs to be fixed, I'm just not sure what and where exactly. If anything, sanitycheck's behavior seems erratic and ungrounded - why suddenly it decided to read and parse output of this sample?
So again, this definitely needs to be fixed, I'm just not sure what and where exactly. If anything, sanitycheck's behavior seems erratic and ungrounded - why suddenly it decided to read and parse output of this sample?
In that regard, I submitted https://github.com/zephyrproject-rtos/zephyr/issues/26209, because if the root issue is not fixed, such cases will reoccur again and again.
I see that introducing the line to be looked for in regex: - "Read 10 (0xa) from efd" causes the sample test failures. It seems that the line is correctly printed out, however, it is not properly detected. Without that line the test passes. Any ideas on how this regex line can be fixed?
I think I've got it. Adding \ before ( and ) seems to solve the issue
Adding \ before ( and ) seems to solve the issue
Indeed, (
/)
is regex pattern syntax (grouping), not matched literally. Thanks for taking care of this!
Describe the bug Sample from
../samples/posix/eventfd
fails when run by sanitycheck on-targetTo Reproduce Steps to reproduce the behavior: Example with nrf platform, however it fails on every platform (https://testing.zephyrproject.org/daily_tests/zephyr-v2.3.0-327-g636d6cd9cd/report/index.html)
Expected behavior Sample passes.
Impact annoyance
Screenshots or console output