From 8fd73b389177f0622c3a6935a986e2581f7f661e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 22 Mar 2018 13:15:34 +1300 Subject: [PATCH] selftest: Align cleanup of tmpkpasswdscript with scripts that use it Some scripts removed it without creating it and the others created it and did not remove it. Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- testprogs/blackbox/test_chgdcpass.sh | 2 +- testprogs/blackbox/test_kinit_mit.sh | 2 +- testprogs/blackbox/test_kinit_trusts_heimdal.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testprogs/blackbox/test_chgdcpass.sh b/testprogs/blackbox/test_chgdcpass.sh index 3830cb4e31d..6ac4c882e32 100755 --- a/testprogs/blackbox/test_chgdcpass.sh +++ b/testprogs/blackbox/test_chgdcpass.sh @@ -110,5 +110,5 @@ test_smbclient "Test login with kerberos ccache with fresh kinit" 'ls' "$unc" -k rm -f $KRB5CCNAME -rm -f $PREFIX/tmpccache tmpccfile tmppassfile tmpuserpassfile tmpuserccache tmpkpasswdscript +rm -f $PREFIX/tmpccache tmpccfile tmppassfile tmpuserpassfile tmpuserccache exit $failed diff --git a/testprogs/blackbox/test_kinit_mit.sh b/testprogs/blackbox/test_kinit_mit.sh index 3e07281b8c7..d178ba4c710 100755 --- a/testprogs/blackbox/test_kinit_mit.sh +++ b/testprogs/blackbox/test_kinit_mit.sh @@ -306,5 +306,5 @@ $samba_kdestroy rm -f $KRB5CCNAME_PATH rm -f $PREFIX/tmpkinituserpassscript rm -f $PREFIX/tmpkinitscript - +rm -f $PREFIX/tmpkpasswdscript exit $failed diff --git a/testprogs/blackbox/test_kinit_trusts_heimdal.sh b/testprogs/blackbox/test_kinit_trusts_heimdal.sh index e67f77361a4..4a1c0f7f213 100755 --- a/testprogs/blackbox/test_kinit_trusts_heimdal.sh +++ b/testprogs/blackbox/test_kinit_trusts_heimdal.sh @@ -94,5 +94,5 @@ testit "wbinfo check outgoing trust pw" $VALGRIND $wbinfo --check-secret --domai test_smbclient "Test user login with the changed outgoing secret" 'ls' "$unc" -k yes -U$USERNAME@$REALM%$PASSWORD || failed=`expr $failed + 1` -rm -f $PREFIX/tmpccache tmpccfile tmppassfile tmpuserpassfile tmpuserccache tmpkpasswdscript +rm -f $PREFIX/tmpccache tmpccfile tmppassfile tmpuserpassfile tmpuserccache exit $failed