mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
tests: nonspecific cleanup
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13259
This commit is contained in:
@@ -57,7 +57,7 @@ function cleanup
|
||||
restore_root_datasets
|
||||
}
|
||||
|
||||
log_assert "everyone' is interpreted as a keyword even if a user " \
|
||||
log_assert "'everyone' is interpreted as a keyword even if a user " \
|
||||
"or group named 'everyone' exists."
|
||||
log_onexit cleanup
|
||||
|
||||
@@ -79,9 +79,7 @@ if [[ $user_added == "TRUE" ]]; then
|
||||
fi
|
||||
|
||||
log_note "Created a group called 'everyone'."
|
||||
if ! cat /etc/group | awk -F: '{print $1}' | \
|
||||
grep -w 'everyone' > /dev/null 2>&1
|
||||
then
|
||||
if ! grep -q '^everyone:' /etc/group; then
|
||||
group_added="TRUE"
|
||||
log_must add_group everyone
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user