Blame SOURCES/libcgroup-0.41-runlibcgrouptest-systemd-fix.patch

0a7b38
From 92597b479aeb46c6dc630353de16328c365ff083 Mon Sep 17 00:00:00 2001
0a7b38
From: jchaloup <jchaloup@redhat.com>
0a7b38
Date: Fri, 14 Feb 2014 10:29:33 +0100
0a7b38
Subject: [PATCH] runlibcgrouptest script updated to ignore systemd
0a7b38
0a7b38
---
0a7b38
 tests/runlibcgrouptest.sh    | 2 +-
0a7b38
 tests/runlibcgrouptest.sh.in | 2 +-
0a7b38
 2 files changed, 2 insertions(+), 2 deletions(-)
0a7b38
0a7b38
diff --git a/tests/runlibcgrouptest.sh b/tests/runlibcgrouptest.sh
0a7b38
index 221729c..605f045 100644
0a7b38
--- a/tests/runlibcgrouptest.sh
0a7b38
+++ b/tests/runlibcgrouptest.sh
0a7b38
@@ -48,7 +48,7 @@ debug()
0a7b38
 check_mount_fs ()
0a7b38
 {
0a7b38
 	local NUM_MOUNT=0;
0a7b38
-	CGROUP=`cat /proc/mounts|grep -w ^cgroup|tr -s [:space:]|cut -d" " -f3`;
0a7b38
+	CGROUP=`cat /proc/mounts|grep -w ^cgroup|grep -v systemd|tr -s [:space:]|cut -d" " -f3`;
0a7b38
 
0a7b38
 	# get first word in case of multiple mounts
0a7b38
 	CGROUP=`echo $CGROUP|cut -d" " -f1`;
0a7b38
diff --git a/tests/runlibcgrouptest.sh.in b/tests/runlibcgrouptest.sh.in
0a7b38
index 119addd..8a57881 100755
0a7b38
--- a/tests/runlibcgrouptest.sh.in
0a7b38
+++ b/tests/runlibcgrouptest.sh.in
0a7b38
@@ -48,7 +48,7 @@ debug()
0a7b38
 check_mount_fs ()
0a7b38
 {
0a7b38
 	local NUM_MOUNT=0;
0a7b38
-	CGROUP=`cat /proc/mounts|grep -w ^cgroup|tr -s [:space:]|cut -d" " -f3`;
0a7b38
+	CGROUP=`cat /proc/mounts|grep -w ^cgroup|grep -v systemd|tr -s [:space:]|cut -d" " -f3`;
0a7b38
 
0a7b38
 	# get first word in case of multiple mounts
0a7b38
 	CGROUP=`echo $CGROUP|cut -d" " -f1`;
0a7b38
-- 
0a7b38
1.8.5.3
0a7b38