]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fuse/runtests: include length in drepr() output
authorrobk-tahoe <robk-tahoe@allmydata.com>
Tue, 21 Oct 2008 00:01:59 +0000 (17:01 -0700)
committerrobk-tahoe <robk-tahoe@allmydata.com>
Tue, 21 Oct 2008 00:01:59 +0000 (17:01 -0700)
contrib/fuse/runtests.py

index 5a94cce832cbaea1189e26f70bc44ffd96aab8fb..38aca2aab1494eccad5514cdedfbbfbc8f9d5a7b 100644 (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