Commit a34b28c9 authored by Po-Hsu Lin's avatar Po-Hsu Lin Committed by Shuah Khan

selftests: check hot-pluggagble memory for memory-hotplug test

Check for hot-pluggable memory availability in prerequisite() of the
memory-hotplug test.
Signed-off-by: default avatarPo-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 593f9278
...@@ -22,6 +22,11 @@ prerequisite() ...@@ -22,6 +22,11 @@ prerequisite()
echo $msg memory hotplug is not supported >&2 echo $msg memory hotplug is not supported >&2
exit 0 exit 0
fi fi
if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then
echo $msg no hot-pluggable memory >&2
exit 0
fi
} }
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment