The runlibcgrouptest.sh will now whine when script is started by non-root user. Root permissions are needed to create directories and mount the cgroups there.
Signed-off-by: Jan Safranek <[email protected]> --- tests/runlibcgrouptest.sh | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/tests/runlibcgrouptest.sh b/tests/runlibcgrouptest.sh index 4ddb52d..90c760b 100755 --- a/tests/runlibcgrouptest.sh +++ b/tests/runlibcgrouptest.sh @@ -325,6 +325,13 @@ runtest() exit $SKIP_TEST; fi; + MY_ID=`id -u` + if [ $MY_ID -ne 0 ]; + echo "Only root can start this script." + echo " Exiting the testcase..." + exit $SKIP_TEST + fi + # TestSet01: Run tests without mounting cgroup filesystem echo; echo Running first set of testcases; ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
