##// END OF EJS Templates
tests: improved test coverage for HTTP authentication and 401 responses...
tests: improved test coverage for HTTP authentication and 401 responses Dump the access log to verify that the client gets the 401s it deserves and handles them correctly. This establishes a baseline for Basic authentication protocol.

File last commit:

r10282:08a0f04b default
r20385:54235a6f default
Show More
readlink.py
13 lines | 243 B | text/x-python | PythonLexer
#!/usr/bin/env python
import errno, os, sys
for f in sys.argv[1:]:
try:
print f, '->', os.readlink(f)
except OSError, err:
if err.errno != errno.EINVAL:
raise
print f, 'not a symlink'
sys.exit(0)