diff options
Diffstat (limited to 'tests/runlibcgrouptest.sh')
-rwxr-xr-x | tests/runlibcgrouptest.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/runlibcgrouptest.sh b/tests/runlibcgrouptest.sh index 4ddb52d..847f932 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 ]; then + 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; |