]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw tests: clean up immediately after the test
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 30 Apr 2013 23:47:34 +0000 (16:47 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 30 Apr 2013 23:47:34 +0000 (16:47 -0700)
commit6aba6d2cadedd8fdcd8495ca639653ce15f6b2cc
tree0a89e678bd415de783cfd7a50ba2015de5e96be9
parent935e8685e6ecc2b183687c5de125fc88146f28f5
rgw tests: clean up immediately after the test

There's no need for an explicit cleanup function, so move it back
to where it came from (except in s3roundtrip, which did not have it).

Instead, since these use a nested contextmanager, pass through
and yield to the top-level run_tasks after the nested
contextmanager has finished (and thus run all the cleanup steps
in the subtasks for this test).

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
teuthology/task/s3readwrite.py
teuthology/task/s3roundtrip.py
teuthology/task/s3tests.py
teuthology/task/swift.py