summaryrefslogtreecommitdiffstats
path: root/src/tests/gssapi
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-12-20 11:06:52 -0500
committerGreg Hudson <ghudson@mit.edu>2013-12-20 23:10:03 -0500
commitae027dd69fc80cca549c9198d10afad389f30873 (patch)
tree343dc9b63543d39b682296b7ff6ca3d16c9f877c /src/tests/gssapi
parentc25fc42e8eac7350209df61e4a7b9960d17755ca (diff)
Use an extended com_err hook in klist
Add an adapted version of extended_com_err_fn from kinit to klist and use it. In do_ccache(), rely on the ccache type to set a reasonable message if krb5_cc_set_flags() or krb5_cc_get_principal() fails due to a nonexistent or unreadable ccache, and don't confuse the user with the name of the ccache operation that failed. ticket: 7809
Diffstat (limited to 'src/tests/gssapi')
-rw-r--r--src/tests/gssapi/t_client_keytab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/gssapi/t_client_keytab.py b/src/tests/gssapi/t_client_keytab.py
index ef27d5e59..d26d408cd 100644
--- a/src/tests/gssapi/t_client_keytab.py
+++ b/src/tests/gssapi/t_client_keytab.py
@@ -135,7 +135,7 @@ if bob not in out:
fail('Authenticated as wrong principal')
# Make sure the tickets we acquired didn't become the default
out = realm.run([klist], expected_code=1)
-if 'No credentials cache found' not in out:
+if ' not found' not in out:
fail('Expected error not seen')
realm.run([kdestroy, '-A'])