Message ID | 20230915181006.2086061-4-bigeasy@linutronix.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 5c3ce539a11185268aff3bb30d2fad8c7fa42f86 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: hsr: Properly parse HSRv1 supervisor frames. | expand |
diff --git a/tools/testing/selftests/net/hsr/hsr_ping.sh b/tools/testing/selftests/net/hsr/hsr_ping.sh index df91435387086..183f4a0f19dd9 100755 --- a/tools/testing/selftests/net/hsr/hsr_ping.sh +++ b/tools/testing/selftests/net/hsr/hsr_ping.sh @@ -197,7 +197,7 @@ do break fi sleep 1 - let WAIT = WAIT - 1 + let "WAIT = WAIT - 1" done # Just a safety delay in case the above check didn't handle it.
The timeout in the while loop is never subtracted due wrong usage of `let' leading to an endless loop if the former condition never gets true. Put the statement for let in quotes so it is parsed as a single statement. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- tools/testing/selftests/net/hsr/hsr_ping.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)