Better functest quarantine cleanup

Change-Id: I9218aaeb5fcd21f1bc2a5d655e3216059a209aeb
This commit is contained in:
Clay Gerrard 2020-06-01 09:20:59 -05:00
parent 4851c11600
commit ede9dad9f6

View File

@ -7982,7 +7982,7 @@ class TestObjectDisconnectCleanup(unittest.TestCase):
continue
device_path = os.path.join(_testdir, dev)
for datadir in os.listdir(device_path):
if 'object' not in datadir:
if any(p in datadir for p in ('account', 'container')):
continue
data_path = os.path.join(device_path, datadir)
rmtree(data_path, ignore_errors=True)