From 0a75914fb787b47cb358ff7a64d749062c14aed2 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 20 Nov 2018 17:42:45 -0600 Subject: Fix up some tests for running as a normal user. --- tests/groupdel.test | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/groupdel.test') diff --git a/tests/groupdel.test b/tests/groupdel.test index ea9ee9ad..94edcf90 100755 --- a/tests/groupdel.test +++ b/tests/groupdel.test @@ -5,6 +5,13 @@ [ -f testing.sh ] && . testing.sh +if [ "$(id -u)" -ne 0 ] +then + echo "$SHOWSKIP: groupdel (not root)" + continue 2>/dev/null + exit +fi + # Redirecting all output to /dev/null for grep and delgroup arg="&>/dev/null" -- cgit v1.2.3