Skip to content

Commit 5c3ce53

Browse files
Sebastian Andrzej Siewiordavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fbd825f commit 5c3ce53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/hsr/hsr_ping.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ do
197197
break
198198
fi
199199
sleep 1
200-
let WAIT = WAIT - 1
200+
let "WAIT = WAIT - 1"
201201
done
202202

203203
# Just a safety delay in case the above check didn't handle it.

0 commit comments

Comments
 (0)