From 22cd4bcc9e8367c6871512f4c96033c7836e2c41 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 24 May 2012 13:37:09 +1000 Subject: s4-selftest: Always delete the user at the end of test_passwords.sh If this test is run in the "dc" environment (rather than "dc:local") is would not delete the test user. Andrew Bartlett --- testprogs/blackbox/test_passwords.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testprogs/blackbox') diff --git a/testprogs/blackbox/test_passwords.sh b/testprogs/blackbox/test_passwords.sh index c83b46b4fc..fe8386dd34 100755 --- a/testprogs/blackbox/test_passwords.sh +++ b/testprogs/blackbox/test_passwords.sh @@ -227,7 +227,7 @@ testit_expect_failure "try to change password too quickly (command should not su testit "reset password policies" $VALGRIND $samba_tool domain passwordsettings $CONFIG set --complexity=default --history-length=default --min-pwd-length=default --min-pwd-age=default --max-pwd-age=default || failed=`expr $failed + 1` -testit "del user" $VALGRIND $samba_tool user delete nettestuser -U"$USERNAME%$PASSWORD" -k no $@ || failed=`expr $failed + 1` +testit "del user" $VALGRIND $samba_tool user delete nettestuser -U"$USERNAME%$PASSWORD" $CONFIG -k no $@ || failed=`expr $failed + 1` rm -f tmpccfile tmppassfile tmpuserpassfile tmpuserccache tmpkpasswdscript tmpsmbpasswdscript exit $failed -- cgit