tools: tests: modify delays in toggle test
authorJoe Slater <joe.slater@windriver.com>
Tue, 6 Jun 2023 15:04:27 +0000 (08:04 -0700)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 6 Jun 2023 15:18:31 +0000 (17:18 +0200)
commit53f9670d6af1bd0745c1df9c469b269c72607b23
treec4a8ae49ba4094d92d3b9a530d3c0c9f9b313282
parent7251691618015542ad44be1400071bf757291df4
tools: tests: modify delays in toggle test

The test "gpioset: toggle (continuous)" uses fixed delays to test
toggling values. This is not reliable, so we switch to looking
for transitions from one value to another.

We wait for a transition up to 1.5 seconds.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tools/gpio-tools-test.bats