提交 a34b28c9 编写于 作者: P Po-Hsu Lin 提交者: 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: NPo-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
上级 593f9278
......@@ -22,6 +22,11 @@ prerequisite()
echo $msg memory hotplug is not supported >&2
exit 0
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册