]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fix ceph-objectstore-tool test missing fd.close()
authorDavid Zafman <dzafman@redhat.com>
Fri, 30 Jan 2015 01:14:39 +0000 (17:14 -0800)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:50:22 +0000 (12:50 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit ece630d5a741ba8c82f55f964f1887cb7fcaa493)

src/test/ceph_objectstore_tool.py

index 1f9c8cc6942b9aa6e7076ffb1bad8ddb4736c92d..59172d67598273373bfe5b290ac91a68a22d86c1 100755 (executable)
@@ -739,6 +739,7 @@ def main(argv):
                     if ret != 0:
                         logging.error("Bad exit status {ret} from set-bytes to restore object".format(ret=ret))
                         ERRORS += 1
+                    fd.close()
 
     try:
         os.unlink(GETNAME)