From fd78cb48e9ac3913c451599b2a86330dcd8e3167 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 4 Jul 2016 22:25:52 -0500 Subject: Fix chattr and date tests. --- tests/chattr.test | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/chattr.test') 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 -- cgit v1.2.3