diff options
Diffstat (limited to 'tests/passwd/21_passwd_user_change_password_other_user/passwd.test')
-rwxr-xr-x | tests/passwd/21_passwd_user_change_password_other_user/passwd.test | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/tests/passwd/21_passwd_user_change_password_other_user/passwd.test b/tests/passwd/21_passwd_user_change_password_other_user/passwd.test deleted file mode 100755 index bcb0a105..00000000 --- a/tests/passwd/21_passwd_user_change_password_other_user/passwd.test +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -set -e - -cd $(dirname $0) - -. ../../common/config.sh -. ../../common/log.sh - -log_start "$0" "root can change her password" - -save_config - -# restore the files on exit -trap 'log_status "$0" "FAILURE"; restore_config' 0 - -change_config - -su -l foo -c "passwd foo1" 2>tmp/passwd.err && exit 1 || { - status=$? -} -echo "OK" - -echo -n "Check returned status ($status)..." -test "$status" = "1" -echo "OK" - -echo "passwd reported:" -echo "=======================================================================" -cat tmp/passwd.err -echo "=======================================================================" -echo -n "Check that there were a failure message..." -diff -au data/passwd.err tmp/passwd.err -echo "error message OK." -rm -f tmp/passwd.err - -echo -n "Check the passwd file..." -../../common/compare_file.pl config/etc/passwd /etc/passwd -echo "OK" -echo -n "Check the group file..." -../../common/compare_file.pl config/etc/group /etc/group -echo "OK" -echo -n "Check the shadow file..." -../../common/compare_file.pl config/etc/shadow /etc/shadow -echo "OK" -echo -n "Check the gshadow file..." -../../common/compare_file.pl config/etc/gshadow /etc/gshadow -echo "OK" - -log_status "$0" "SUCCESS" -restore_config -trap '' 0 - |