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

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

selftests: check percentage range for memory-hotplug test



Check the precentage range for -r flag in 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 a34b28c9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -136,6 +136,10 @@ while getopts e:hp:r: opt; do
		;;
	r)
		ratio=$OPTARG
		if [ "$ratio" -gt 100 ] || [ "$ratio" -lt 0 ]; then
			echo "The percentage should be an integer within 0~100 range"
			exit 1
		fi
		;;
	esac
done