Blame tests/p_shadow-utils/19-userdel_tests

Athmane Madjoudj 536354
#!/bin/bash
Athmane Madjoudj 536354
# Author: Iain Douglas <centos@1n6.org.uk>
Athmane Madjoudj 536354
Athmane Madjoudj 536354
echo "Running $0"
Athmane Madjoudj 536354
echo "Delete user shadowuser"
Athmane Madjoudj 536354
userdel -r shadowuser
Athmane Madjoudj 536354
t_CheckExitStatus $?
Athmane Madjoudj 536354
echo "Check user was deleted"
Athmane Madjoudj 536354
grep -q "^shadowuser" /etc/passwd && { t_Log "FAIL: shadowuser not deletd"; exit $FAIL;}
Athmane Madjoudj 536354
t_Log "PASS"