]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Clean up default ccache in dejagnu test suite 964/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 5 Aug 2019 19:39:34 +0000 (15:39 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 6 Aug 2019 01:44:06 +0000 (21:44 -0400)
The dejagnu test suite could fail due to a leftover tmpdir/tkt ccache
containing expired tickets.  Remove the ccache file along with the
keytab in delete_db.  (The file cpw_keytab, formerly written as
cpw_srvtab, is not used in the dejagnu tests and has not been used
going back to 1.0, so replace that removal with the removal of
tmpdir/tkt.)

src/tests/dejagnu/config/default.exp

index d6e23e71710fc86920af7da153e58f7f20fc13cf..93e2fb0f508b7c228331909c476e11926f7cdf22 100644 (file)
@@ -275,8 +275,8 @@ proc delete_db {} {
        $tmppwd/kdc-db.ulog \
        $tmppwd/replica-db $tmppwd/replica-db.ok $tmppwd/replica-db.kadm5 $tmppwd/replica-db.kadm5.lock \
        $tmppwd/replica-db~ $tmppwd/replica-db~.ok $tmppwd/replica-db~.kadm5 $tmppwd/replica-db~.kadm5.lock
-    # Creating a new database means we need a new keytab.
-    file delete $tmppwd/keytab $tmppwd/cpw_keytab
+    # Creating a new database invalidates the keytab and ccache.
+    file delete $tmppwd/keytab $tmppwd/tkt
 }
 
 delete_db