u-boot/test/py
Diego Rondini dd2b8c1155 cmd: gpio: Add gpio read subcommand
As explained in commit 4af2a33ee5 ("cmd: gpio: Make `gpio input`
return pin value again") the `gpio input` is used in scripts to obtain
the value of a pin, despite the fact that CMD_RET_FAILURE is
indistinguishable from a valid pin value.
To be able to detect failures and properly use the value of a GPIO in
scripts we introduce the `gpio read` command that sets the variable
`name` to the value of the pin. Return code of the `gpio read` command
can be used to check for CMD_RET_SUCCESS or CMD_RET_FAILURE.
CONFIG_CMD_GPIO_READ is used to enable the `gpio read` command.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
2022-04-20 11:14:39 -04:00
..
tests cmd: gpio: Add gpio read subcommand 2022-04-20 11:14:39 -04:00
.gitignore test/py: Implement pytest infrastructure 2016-01-20 19:06:23 -07:00
conftest.py test/py: Relax the naming rules for unit tests 2021-11-28 16:51:51 -07:00
multiplexed_log.css SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
multiplexed_log.py Prepare v2022.01-rc3 2021-11-29 12:00:57 -05:00
pytest.ini test/py: Manual python3 fixes 2019-10-30 17:48:47 -04:00
requirements.txt tests: patman: Add requests to the module list 2021-04-29 03:23:39 -07:00
test.py pytest: Shorten traceback length by default 2021-10-14 19:45:07 -04:00
u_boot_console_base.py test: Correct pylint errors 2022-03-02 10:28:12 -05:00
u_boot_console_exec_attach.py test: fix pylint error in u_boot_console_exec_attach.py 2021-11-26 22:02:37 +01:00
u_boot_console_sandbox.py test/py: Handle expected reboot while booting sandbox 2022-02-26 07:37:01 +01:00
u_boot_spawn.py test: fix pylint errors in u_boot_spawn.py 2021-11-26 22:02:37 +01:00
u_boot_utils.py Prepare v2022.01-rc3 2021-11-29 12:00:57 -05:00