summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/memory-hotplug/mem-on-off-test.sh')
-rwxr-xr-xtools/testing/selftests/memory-hotplug/mem-on-off-test.sh4
1 files changed, 3 insertions, 1 deletions
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