fuse/runtests: include length in drepr() output

This commit is contained in:
robk-tahoe 2008-10-20 17:01:59 -07:00
parent 3fbfd9fce3
commit fafb584ef6

View File

@ -162,7 +162,7 @@ def run_system_test(config):
def drepr(obj):
r = repr(obj)
if len(r) > 200:
return r[:100] + ' ... ' + r[-100:]
return '%s ... %s [%d]' % (r[:100], r[-100:], len(r))
else:
return r