diff options
author | Rob Landley <rob@landley.net> | 2018-11-20 17:42:45 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-11-20 17:42:45 -0600 |
commit | 0a75914fb787b47cb358ff7a64d749062c14aed2 (patch) | |
tree | a3d11580be22e9addedbd773692f402d5adb43ae /tests/groupadd.test | |
parent | 42f8b18bc27b0143edee8fd598eee853d6ca47f9 (diff) | |
download | toybox-0a75914fb787b47cb358ff7a64d749062c14aed2.tar.gz |
Fix up some tests for running as a normal user.
Diffstat (limited to 'tests/groupadd.test')
-rwxr-xr-x | tests/groupadd.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/groupadd.test b/tests/groupadd.test index 091dccf7..6161ee2f 100755 --- a/tests/groupadd.test +++ b/tests/groupadd.test @@ -4,6 +4,13 @@ [ -f testing.sh ] && . testing.sh +if [ "$(id -u)" -ne 0 ] +then + echo "$SHOWSKIP: groupadd (not root)" + continue 2>/dev/null + exit +fi + # 70 characters long string; hereafter, we will use it as per our need. _s70="abcdefghijklmnopqrstuvwxyz123456789abcdefghijklmnopqrstuvwxyz123456789" |