Message ID | ae8c3cdd-8bc6-fd64-ce73-9a27a60a8820@linuxfoundation.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 00397e74e37a1285baee8678085297a330a6e2ce |
Headers | show |
Series | [GIT,PULL] Kselftest update for Linux 5.14-rc2 | expand |
The pull request you sent on Fri, 16 Jul 2021 16:24:37 -0600:
> git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-fixes-5.14-rc2
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/00397e74e37a1285baee8678085297a330a6e2ce
Thank you!
diff --git a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh b/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh index b37585e6aa38..46a97f318f58 100755 --- a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh +++ b/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh @@ -282,7 +282,9 @@ done # echo $error > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error for memory in `hotpluggable_online_memory`; do - offline_memory_expect_fail $memory + if [ $((RANDOM % 100)) -lt $ratio ]; then + offline_memory_expect_fail $memory + fi done echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error