]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: Make test_gpio_read() independent
authorSimon Glass <sjg@chromium.org>
Sat, 6 Aug 2022 23:51:54 +0000 (17:51 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Sep 2022 22:06:36 +0000 (18:06 -0400)
commitb681669aa533346b648995ae8c4bd9d257ea920a
tree4adbfb5ea384041bf9fffea143a8327d3ff92428
parentd401187fecc16d68e816832d0cace53e872c6afe
test: Make test_gpio_read() independent

This assumes that the GPIO starts as 0 but it does not if
test_gpio_input() ran first and test_gpio_exit_statuses() was skipped.
This can happen when running tests in parallel.

Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_gpio.py