We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d721e commit 052f395Copy full SHA for 052f395
tools/testing/selftests/livepatch/test-livepatch.sh
@@ -139,11 +139,8 @@ load_lp $MOD_REPLACE replace=1
139
grep 'live patched' /proc/cmdline > /dev/kmsg
140
grep 'live patched' /proc/meminfo > /dev/kmsg
141
142
-mods=(/sys/kernel/livepatch/*)
143
-nmods=${#mods[@]}
144
-if [ "$nmods" -ne 1 ]; then
145
- die "Expecting only one moduled listed, found $nmods"
146
-fi
+loop_until 'mods=(/sys/kernel/livepatch/*); nmods=${#mods[@]}; [[ "$nmods" -eq 1 ]]' ||
+ die "Expecting only one moduled listed, found $nmods"
147
148
# These modules were disabled by the atomic replace
149
for mod in $MOD_LIVEPATCH3 $MOD_LIVEPATCH2 $MOD_LIVEPATCH1; do
0 commit comments