mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 02:43:56 +00:00
Device testing has various problems: - the main thread doesn't halt the serial monitoring thread when an error occurs while flashing, meaning flash errors can look like timeouts - serial_line is unbound if the ser.readline() call raises an exception, so the following "if serial_line" would raise NameError in that case - the serial monitoring thread is not a daemon, so exceptions or errors in the handle() thread that cause thread exit will leave the process sitting around until the serial monitoring thread has a chance to exit Fix these issues: - Rewrite the serial monitoring thread as a select loop over the serial port file descriptor and a pipe shared by the main thread and serial monitoring thread. If flashing fails, the main thread uses the pipe to signal to the serial monitoring thread that it should exit. - Make sure serial_line is always bound when read. - Mark the serial thread daemonic. Signed-off-by: Marti Bolivar <marti@foundries.io> |
||
---|---|---|
.. | ||
checkpatch | ||
ci | ||
coccinelle | ||
cross_compiler | ||
dts | ||
footprint | ||
gitlint | ||
kconfig | ||
sanity_chk | ||
support | ||
west_commands | ||
.gitignore | ||
check_link_map.py | ||
checkpatch.pl | ||
checkstack.pl | ||
coccicheck | ||
dir_is_writeable.py | ||
elf_helper.py | ||
file2hex.py | ||
filter-known-issues.py | ||
gen_app_partitions.py | ||
gen_cfb_font_header.py | ||
gen_gcov_files.py | ||
gen_gdt.py | ||
gen_idt.py | ||
gen_kobject_list.py | ||
gen_mmu_x86.py | ||
gen_offset_header.py | ||
gen_priv_stacks.py | ||
gen_relocate_app.py | ||
gen_syscall_header.py | ||
gen_syscalls.py | ||
mergehex.py | ||
parse_syscalls.py | ||
process_gperf.py | ||
qemu-machine-hack.py | ||
requirements.txt | ||
sanitycheck | ||
spelling.txt | ||
subfolder_list.py | ||
tags.sh | ||
valgrind.supp | ||
waitpid | ||
west-commands.yml |