Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
}

#