From 75aab8fd7c5b3bc71b7be889f83f6bbf1dd65ee3 Mon Sep 17 00:00:00 2001 From: Ivana Hutarova Varekova Date: Fri, 18 May 2012 17:59:01 +0200 Subject: [PATCH] testsuite: wrong cgroup mount points parsing testsuite: runlibcgrouptest.sh has too benevolent mount points parsing thus there are filtred other mount points (not only cgroup one) as well. Signed-off-by: Ivana Hutarova Varekova Acked-By: Jan Safranek --- tests/runlibcgrouptest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/runlibcgrouptest.sh b/tests/runlibcgrouptest.sh index df1a9211..12b92536 100755 --- a/tests/runlibcgrouptest.sh +++ b/tests/runlibcgrouptest.sh @@ -48,7 +48,7 @@ debug() check_mount_fs () { local NUM_MOUNT=0; - CGROUP=`cat /proc/mounts|grep -w cgroup|tr -s [:space:]|cut -d" " -f3`; + CGROUP=`cat /proc/mounts|grep -w ^cgroup|tr -s [:space:]|cut -d" " -f3`; # get first word in case of multiple mounts CGROUP=`echo $CGROUP|cut -d" " -f1`; @@ -56,7 +56,7 @@ check_mount_fs () debug "check_mount_fs(): CGROUP is $CGROUP"; if [ "$CGROUP" = "cgroup" ] then - NUM_MOUNT=`cat /proc/mounts|grep -w cgroup|wc -l`; + NUM_MOUNT=`cat /proc/mounts|grep -w ^cgroup|wc -l`; debug "check_mount_fs(): fs mounted at $NUM_MOUNT places"; if [ $NUM_MOUNT -eq 1 ] -- 2.47.2