aboutsummaryrefslogtreecommitdiff
path: root/tests/chattr.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chattr.test')
-rwxr-xr-xtests/chattr.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/chattr.test b/tests/chattr.test
index bbf8b099..3574430f 100755
--- a/tests/chattr.test
+++ b/tests/chattr.test
@@ -4,6 +4,13 @@
#testing "name" "command" "result" "infile" "stdin"
+if [ "$(id -u)" -ne 0 ]
+then
+ echo "$SHOWSKIP: chgrp (not root)"
+ continue 2>/dev/null
+ exit
+fi
+
# chattr - Testcases
mkdir testattr