diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2023-09-15 20:10:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-09-18 08:26:19 +0100 |
commit | 5c3ce539a11185268aff3bb30d2fad8c7fa42f86 (patch) | |
tree | b55ffc58645aac4c97684617805d351f77a8467e /tools | |
parent | fbd825fcd7dd4c11d4c48c3d0adc248a4a0ce90b (diff) | |
download | lwn-5c3ce539a11185268aff3bb30d2fad8c7fa42f86.tar.gz lwn-5c3ce539a11185268aff3bb30d2fad8c7fa42f86.zip |
selftests: hsr: Use `let' properly.
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/testing/selftests/net/hsr/hsr_ping.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/hsr/hsr_ping.sh b/tools/testing/selftests/net/hsr/hsr_ping.sh index df9143538708..183f4a0f19dd 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. |