diff --git a/test/create_users.sh b/test/create_users.sh index d9db4b3a1f78e55bbd0403f84a2ad2d664dbc9b3..9ec3a629fa2b63a694c8334831e427f9fb67946b 100755 --- a/test/create_users.sh +++ b/test/create_users.sh @@ -19,7 +19,13 @@ do faketime -f "${ft_date}" ./login.exp $ft_user &>/dev/null - deluser --remove-home $ft_user >/dev/null + if grep -q "openSUSE" /etc/os-release + then + userdel -r $ft_user >/dev/null + else + deluser --remove-home $ft_user >/dev/null + fi + if [ $? -ne 0 ] then echo "Failed to delete $ft_user!"