Update ocpasswd-test

Signed-off-by: Frank Huang <chuang213@gmail.com>
This commit is contained in:
Frank Huang
2017-09-12 15:54:18 +00:00
committed by Nikos Mavrogiannopoulos
parent fd8d87e8e6
commit f10c5bc73e

View File

@@ -51,6 +51,19 @@ if test $? != 0;then
exit 1
fi
echo "Double locking user... "
$OCPASSWD -c passwd.out -l test
if test $? != 0;then
echo "Failed double locking user test"
exit 1
fi
grep ':!!\$' passwd.out >/dev/null 2>&1
if test $? = 0;then
echo "Failed double locking user test. double exclamation marks were found"
exit 1
fi
echo "Deleting user... "
$OCPASSWD -c passwd.out -d test
if test $? != 0;then