zephyr/scripts
Marti Bolivar 5591ca2374 sanitycheck: various fixes for device testing
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>
2019-02-08 08:08:32 -05:00
..
checkpatch
ci ci: run_ci.sh: make script run locally 2019-02-01 19:04:55 -05:00
coccinelle coccinelle: Updating ignore_return to support memcpy 2018-12-19 14:37:25 +01:00
cross_compiler
dts scripts/dts: Rename get_key_value() to define_str() 2019-02-07 21:42:36 -06:00
footprint size_report: cleanup up detection and error handling 2018-10-29 10:15:17 -04:00
gitlint gitlint: do not start with subsys: 2018-11-28 09:22:01 -08:00
kconfig doc: Add KCONFIG_DOC_MODE env var handling 2019-02-01 10:16:06 -06:00
sanity_chk sanitycheck: Handle data over UART from gcov 2019-01-29 15:03:38 -05:00
support scripts: make runner a west subpackage 2018-05-19 07:01:39 +03:00
west_commands scripts: bossac: Support flashing at an offset. 2019-02-07 15:13:11 -05:00
.gitignore
check_link_map.py
checkpatch.pl userspace: remove APPLICATION_MEMORY feature 2019-02-08 07:04:30 -05:00
checkstack.pl
coccicheck scripts: coccicheck: Add support for SPFLAGS 2019-02-07 08:12:20 -05:00
dir_is_writeable.py cmake: Add function for checking if a directory is write-able 2018-04-27 12:06:02 +02:00
elf_helper.py elf_helper: skip SYS_INIT() "devices" 2018-12-03 11:44:01 -08:00
file2hex.py
filter-known-issues.py scripts: filter-known-issues: Add extra newline 2018-07-12 23:11:46 -04:00
gen_app_partitions.py gen_app_partitions: add library support 2019-02-08 07:04:30 -05:00
gen_cfb_font_header.py subsys: fb: add support for generating CFB font headers at build time 2018-11-28 11:46:00 +01:00
gen_gcov_files.py scripts: gen_gcov_files: report if data capture is not complete 2019-01-29 15:03:38 -05:00
gen_gdt.py
gen_idt.py x86: add dynamic interrupt support 2018-11-10 11:01:22 -05:00
gen_kobject_list.py kernel: remove k_alert API 2019-01-16 21:34:07 -05:00
gen_mmu_x86.py gen_mmu_x86: remove unused function 2019-02-06 14:34:20 -08:00
gen_offset_header.py
gen_priv_stacks.py scripts: gen_priv_stacks.py: run through flake8 2018-09-17 09:40:02 -04:00
gen_relocate_app.py scripts: gen_relocate_app: Use linker provided size variable. 2018-12-29 09:23:34 -05:00
gen_syscall_header.py kernel: syscalls: Change handlers namespace 2018-09-28 07:58:19 +05:30
gen_syscalls.py kernel: syscalls: Change handlers namespace 2018-09-28 07:58:19 +05:30
mergehex.py mergehex: Improve the error feedback when merged hex files overlap 2019-01-29 17:04:42 +01:00
parse_syscalls.py userspace: adjust syscall generation scripts 2018-07-24 14:39:38 -04:00
process_gperf.py userspace: eliminate warning in process_gperf.py 2018-12-07 20:26:46 -05:00
qemu-machine-hack.py
requirements.txt scripts: run_ci.sh: add pytest-based testing for west commands 2019-01-29 10:15:01 +01:00
sanitycheck sanitycheck: various fixes for device testing 2019-02-08 08:08:32 -05:00
spelling.txt
subfolder_list.py cmake: Using symlinks on unix like os'es for dependencies 2018-06-19 17:00:27 +02:00
tags.sh
valgrind.supp valgrind: Add error supression file for POSIX arch 2018-12-21 21:07:18 +01:00
waitpid
west-commands.yml scripts: west_commands: add sign command 2019-02-07 08:44:19 -05:00