]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
s3tests: do not exit cleanup after first bucket! 87/head
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Wed, 2 Dec 2015 01:25:06 +0000 (17:25 -0800)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Wed, 2 Dec 2015 01:28:23 +0000 (17:28 -0800)
Bucket cleanup code was exiting after the first succesful bucket
removed, instead of cleaning up all buckets. This left many buckets
behind over time, causing large slowdowns of the test suite.

This was introduced in commit c41ebab9cf93617f06084cf88c297188b4aa9f67,
when changes for versioned files were added.

Signed-off-by: Kobi Laredo <kobi.laredo@dreamhost.com>
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
Backport: hammer

s3tests/functional/__init__.py

index 68f27bd46a86f9893a66a0d0e79615a66bf3fed1..a5917e1d4221d98ea19808385994aef49b3b5752 100644 (file)
@@ -98,7 +98,7 @@ def nuke_prefixed_buckets_on_conn(prefix, name, conn):
                     pass
 
                 if success:
-                    return
+                    break
 
                 bucket.set_canned_acl('private')