-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
twister: many tests failed with "mismatch error" after met a SerialException. #45009
Comments
Maybe similar to the #44539, |
Did you try to run Twister command with adding following option: |
No, but this is not related to this option. |
this could be reproduced by the local patch below, it would raise serial.SerialException manually at the first time to reproduce the later twister working process. twister -p reel_board --device-testing --device-serial /dev/ttyACM0 -T tests/kernel/semaphore/semaphore/ -T tests/kernel/mutex/mutex_api/ -vv and see the twister results on console, it will report a mismatch error.
|
this issue occurred on v3.0-branch too, so added a backport PR for v3.0-branch. |
Describe the bug
When running twister on reel_board, if it met a serial.SerialException, all tests later will be failed with "mismatch error".
I found that in the monitor serial thread, if met a serial exception, it would invoke ser.close() and the monitor thread would exit, then the current test A(i.e. kernel.mutex) would be judged as failed immediately, like output log as below, it won't wait at t.join(self.timeout) as thread was already exited.
then when running to next test B(i.e. kernel.semaphore), the serial thread would still catch the result from previous test A(kernel.mutex), like output as below , after finish judgement, the thread would exit normally, then test B was failed with "mismatch error".
and all tests later after this exception error would be judged as "mismatch errro" same with test B above.
To Reproduce
Steps to reproduce the behavior:
Logs and console output
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: