aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior2023-09-15 20:10:04 +0200
committerDavid S. Miller2023-09-18 08:26:19 +0100
commit5c3ce539a11185268aff3bb30d2fad8c7fa42f86 (patch)
treeb55ffc58645aac4c97684617805d351f77a8467e /tools
parentfbd825fcd7dd4c11d4c48c3d0adc248a4a0ce90b (diff)
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-xtools/testing/selftests/net/hsr/hsr_ping.sh2
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.