zephyr/scripts
Piotr Golyzniak f22c2d6388 scripts: pytest: align adapters API
Select and place common code of three adapters (HardwareAdapter,
BinaryAdapterBase and QemuAdapter) into basic DeviceAdapter class.

Introduce new way of reading device output by run separate thread which
try to read device output and place it into internal python queue.
Thanks to this, now it is possible to create readline method for all
adapters, which can be unblock when timeout occur.

Collect all common steps which have to be done before setup device in
launch method. The same was done for teardown operations which were
placed into close method.

Additionally some protection mechanisms were introduced to prevent for
undesirable side-effects when user could try to launch to already
launched device or try to send some data to disconnected device.

iter_stdout method was replaced by two new methods: readline and
readlines. To make it possible to remove all read output from internal
buffer (queue), clear_buffer method was introduced.

Also unit tests were rewritten to work properly with current version
of adapters.

Signed-off-by: Piotr Golyzniak <piotr.golyzniak@nordicsemi.no>
2023-08-30 06:39:55 -04:00
..
build scripts: gen_syscalls: rename shadow variables 2023-08-22 17:30:56 -04:00
checkpatch kernel/timeout: introduce the timepoint API 2023-07-25 09:12:26 +02:00
ci ci: test_plan: also filter on platforms when manifest changes 2023-08-24 06:36:00 -04:00
coccinelle scripts: coccinelle: Remove strtok_r symbol from checklist 2023-08-23 16:05:08 +01:00
coredump arch: arm64: add support for coredump 2023-07-03 09:32:26 +02:00
dts edtlib: Exclude PCI devices from some inapplicable checks 2023-08-18 10:13:12 +02:00
footprint footprint: ci: ehl_crb board has been renamed. 2023-08-28 10:28:18 +02:00
generate_usb_vif USB-C: genVIF: Cleanup and add support to pick static data from input 2023-05-26 13:54:43 -04:00
gitlint scripts: zephyr_commit_rules: improve commit error messages 2023-02-08 15:03:56 -08:00
kconfig scripts: kconfig: Add copyright and license to kconfig.py 2023-08-24 22:06:07 +01:00
logging/dictionary scripts: logging: dictionary: Fix database generation 2023-06-19 15:03:07 +02:00
native_simulator native_sim: Update native simulator to latest and align with it 2023-08-16 15:05:12 +02:00
net scripts: net: add enumerate_http_status.py 2022-10-12 09:02:21 -04:00
pylib scripts: pytest: align adapters API 2023-08-30 06:39:55 -04:00
pylint/checkers scripts: pylint: Add argument parser abbreviation checker 2023-01-26 20:12:36 +09:00
release scripts: drop list_issues.py 2023-07-25 16:45:15 +02:00
schemas snippets: fix example usage of EXTRA_DTC_OVERLAY_FILE 2023-08-10 08:15:01 +00:00
support treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
tests scripts: tests: twister: Black box testing 2023-08-28 15:57:06 +02:00
tracing tracing: scripts: Fix spelling 2023-02-08 01:09:31 +09:00
utils scripts: restore utils/migrate_includes.py 2023-08-10 08:05:54 +00:00
west_commands west: build: fail early if path to test item is not valid 2023-08-28 09:17:42 -07:00
.gitignore
checkpatch.pl scripts: Exclude spelling.txt from spelling check 2023-08-04 21:18:43 +00:00
checkstack.pl
coccicheck
dump_bugs_pickle.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_gcov_files.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
get_maintainer.py scripts: get_maintainer: Fix glob pattern directory match error logic 2023-04-26 00:29:25 +09:00
github_helpers.py
list_boards.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
make_bugs_pickle.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
requirements-base.txt west.cmake: make MIN_WEST_VERSION catch up with requirements-base.txt 2023-05-22 10:17:11 +02:00
requirements-build-test.txt
requirements-compliance.txt scripts: compliance: add support for YAMLLint 2023-01-04 17:29:23 +01:00
requirements-extras.txt scripts: requirements: Update protobuf and grpcio-tools requirements 2023-05-23 08:55:16 +02:00
requirements-run-test.txt twister: Use natural sort when generating hardware map 2023-06-17 07:54:46 -04:00
requirements.txt doc: move requirements to doc/ 2023-07-12 09:13:49 -04:00
series-push-hook.sh
set_assignees.py ci: assigner: fix the main operation selector check 2023-08-25 15:31:53 +01:00
snippets.py scripts: snippets: add DTS_EXTRA_CPPFLAGS support 2023-08-02 16:27:11 +02:00
spelling.txt doc: Fix a typo 2023-08-04 21:18:43 +00:00
tags.sh
twister twister: move main to twisterlib/twister_main.py 2023-01-13 15:39:04 -08:00
valgrind.supp valgrind: Update suppression file to align with updated POSIX arch 2023-07-05 07:01:19 -04:00
west-commands.yml west: west twister integration 2023-01-13 15:39:04 -08:00
zephyr_module.py scripts: zephyr_module: Tolerate symlinks 2023-08-11 12:01:21 +00:00