Fix cgroup_lib.sh helper
A typo compromised get_cgroup_mountpoint() effectiveness
leading to cgroup_regression test_5 systematic failure.
Fixes: 3cac1f80d ("cgroup: cgroup_regression_test.sh ported to newlib")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
diff --git a/testcases/kernel/controllers/cgroup_lib.sh b/testcases/kernel/controllers/cgroup_lib.sh
index 8c19c6c..45ab51b 100644
--- a/testcases/kernel/controllers/cgroup_lib.sh
+++ b/testcases/kernel/controllers/cgroup_lib.sh
@@ -16,7 +16,7 @@
[ $# -eq 0 ] && tst_brk TBROK "get_cgroup_mountpoint: subsystem not defined"
mntpoint=$(grep cgroup /proc/mounts | grep -w $subsystem | awk '{ print $2 }')
- [ -z "$mountpoint" ] && return 1
+ [ -z "$mntpoint" ] && return 1
echo $mntpoint
return 0