Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/p_shadow-utils/30-groupadd_tests
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ t_Log "Running $0 group add tests"
sed -i /testgroup/d /etc/group

echo "Create a new group"
groupadd -g 1010 testgroup
next_guid=$((10+$(awk -F: '{print $3}' /etc/group | sort | tail -1)))
groupadd -g $next_guid testgroup
t_CheckExitStatus $?
7 changes: 4 additions & 3 deletions tests/p_shadow-utils/34-groupmod_tests
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
t_Log "Running $0"

# Check that the testgroup exists with GID 1010
grep -q "testgroup:x:1010:testshadow" /etc/group || { t_Log "FAIL Test group doesn't exist"; exit $FAIL; }
grep -q "^testgroup:" /etc/group || { t_Log "FAIL Test group doesn't exist"; exit $FAIL; }

echo "Changing GID for group testgroup to 1011"
groupmod -g 1011 testgroup
next_guid=$((10+$(awk -F: '{print $3}' /etc/group | sort | tail -1)))
echo "Changing GID for group testgroup to $next_guid"
groupmod -g $next_guid testgroup
t_CheckExitStatus $?
Loading