1
0
Fork 0
mirror of https://github.com/u-boot/u-boot.git synced 2025-04-27 16:01:27 +00:00
u-boot/test
Simon Glass 082f3359c7 test: Try to shut down the lab console gracefully
Send the Labgrid quit characters to ask it to exit gracefully. This
typically allows it to power off the board being used. Only do this when
labgrid is being used (detected with an env var).

If that doesn't work, try the less graceful approach.

The normal approach for pytest is to simply kill the child process. This
makes Labgrid exit immediately. Thus it does not get a chance to execute
the 'off' part of strategy (which may power it off) and release the
device.

Without this, every board disconnect leaves the board in a bad state,
requiring separate steps to recover the board, then power it off.

The action is conditional on since USE_LABGRID_SJG being set, so only
affects operation if the Labgrid-sjg integration is being used.

Signed-off-by: Simon Glass <sjg@chromium.org>
2024-11-13 12:01:35 -06:00
..
boot test: efi: boot: Add a test for the efi bootmeth 2024-11-09 10:01:47 +01:00
cmd x86: coreboot: Allow building an expo for editing CMOS config 2024-11-03 21:27:12 -06:00
common test: Use UTF_CONSOLE in remaining tests 2024-08-26 18:51:49 -06:00
dm dm: core: Add a function to see if a device exists 2024-11-03 21:27:12 -06:00
env test: Rename UTF_CONSOLE_REC to UTF_CONSOLE 2024-08-26 18:51:49 -06:00
fs test: fs: fs-test: Move the tests to use sha256sum 2024-01-11 21:19:25 -05:00
fuzz global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
hush test/hush: Add CONFIG_CONSOLE_RECORD where required 2024-10-29 16:17:47 -06:00
image spl: Create a function to init spl_load_info 2024-08-23 15:58:42 -06:00
lib alist: Add a way to efficiently filter an alist 2024-11-03 21:27:12 -06:00
log Merge patch series "Tidy up console recording in tests" 2024-08-26 18:52:18 -06:00
optee Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
overlay test/overlay: Make this depend on SANDBOX 2024-08-23 15:59:39 -06:00
py test: Try to shut down the lab console gracefully 2024-11-13 12:01:35 -06:00
stdint Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
trace
bloblist.c bloblist: test: Mark tests with UTF_BLOBLIST 2024-11-03 21:27:12 -06:00
bootm.c test: bootm: Ensure GD_FLG_SILENT is reset 2024-11-04 14:49:06 -06:00
cmd_ut.c global: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:48 -06:00
command_ut.c Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
common.sh
compression.c test: Remove duplicate newlines 2024-07-15 12:12:18 -06:00
Kconfig test: Remove ASN1 library test 2024-10-14 17:58:52 -06:00
Makefile global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
print_ut.c test: Use UTF_CONSOLE in remaining tests 2024-08-26 18:51:49 -06:00
run
str_ut.c lib: Handle a special case with str_to_list() 2024-08-07 08:49:10 -06:00
test-main.c test: Allow saving and restoring the bloblist 2024-11-03 21:27:12 -06:00
time_ut.c Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
unicode_ut.c Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" 2024-05-19 08:16:36 -06:00
ut.c test: Fail when an empty line is expected but not present 2024-08-26 18:51:48 -06:00