]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tahoe_fuse: system test: webapi connection: bug fix and small log output change.
authornejucomo <nejucomo@gmail.com>
Mon, 21 Jan 2008 03:10:31 +0000 (20:10 -0700)
committernejucomo <nejucomo@gmail.com>
Mon, 21 Jan 2008 03:10:31 +0000 (20:10 -0700)
contrib/fuse/runtests.py

index 97b8d48196dc6dc26ecc5a4232a14d0c54a5b585..078cfbfe2fe4e64a76fa12d6e1700ff646547caf 100644 (file)
@@ -212,11 +212,11 @@ class SystemTest (object):
             conn = httplib.HTTPConnection('127.0.0.1', client.port)
             conn.request('PUT', '/uri?t=mkdir')
             resp = conn.getresponse()
-            if resp.status == '200':
+            if resp.status == 200:
                 return resp.read().strip()
             else:
                 # FIXME: This output can be excessive!
-                print 'HTTP %s reponse while attempting to make node.' % resp.status
+                print 'HTTP %r reponse while attempting to make node.' % (resp.status,)
                 print resp.read()
                 return False # make another polling attempt...