summaryrefslogtreecommitdiffstats
path: root/tests/runlibcgrouptest.sh
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:06:33 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2008-12-17 15:06:33 +0000
commit03a824bf683520a432dade4343d74b0b44dc1bab (patch)
treefd351ba102a7ffddfdccade7866b6f56c08d4764 /tests/runlibcgrouptest.sh
parent82c1d71d9d2599002b3e59383035313218a5b4e0 (diff)
downloadlibcg-03a824bf683520a432dade4343d74b0b44dc1bab.tar.gz
libcg-03a824bf683520a432dade4343d74b0b44dc1bab.tar.xz
libcg-03a824bf683520a432dade4343d74b0b44dc1bab.zip
libcgroup Test: cleanup3
Hi, This patch does cleanups in test script. Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@250 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/runlibcgrouptest.sh')
-rw-r--r--tests/runlibcgrouptest.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/runlibcgrouptest.sh b/tests/runlibcgrouptest.sh
index 30edc31..f3d64cd 100644
--- a/tests/runlibcgrouptest.sh
+++ b/tests/runlibcgrouptest.sh
@@ -63,14 +63,14 @@ umount_fs ()
{
while check_mount_fs
do
- PROC_ENTRY=`cat /proc/mounts|grep cgroup|tr -s [:space:]|cut -d" " -f2`;
+ PROC_ENTRY=`cat /proc/mounts|grep cgroup|\
+ tr -s [:space:]|cut -d" " -f2`;
# Get first mountpoint in case of multiple mounts
PROC_ENTRY=`echo $PROC_ENTRY|cut -d" " -f1`;
if [ ! -z "$PROC_ENTRY" ]
then
TARGET=$PROC_ENTRY;
- # Need to take care if there are tasks running in any group ??
- # Also need to care if cpu and memory are mounted at different places
+ # Need to take care of running tasks in any group ??
rmdir $TARGET/* 2> /dev/null ;
umount $TARGET;
rmdir $TARGET;
@@ -168,10 +168,10 @@ mount_fs ()
fi;
fi;
- mount -t cgroup -o $CONTROLLERS cgroup $NEWTARGET; # 2> /dev/null?
+ mount -t cgroup -o $CONTROLLERS cgroup $NEWTARGET;
if [ $? -ne 0 ]
then
- echo "ERROR: Could not mount cgroup filesystem on $NEWTARGET."
+ echo "ERROR: in mounting cgroup fs on $NEWTARGET."
echo "Exiting test";
umount_fs;
exit -1;