]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
task/workunit: clean up dir deletion
authorJohn Spray <jspray@redhat.com>
Fri, 18 Jul 2014 13:09:16 +0000 (14:09 +0100)
committerJohn Spray <jspray@redhat.com>
Fri, 25 Jul 2014 12:33:31 +0000 (13:33 +0100)
commit396dc073cbea2c6282d2c9dcb6b1a36fd86a044d
treec767090b8d0f8a97e1f43de1ff75f42cd2d2b102
parenta96a7b027ce6ad74348d52bc0da512fe66027f70
task/workunit: clean up dir deletion

This was always trying to remove the mountpoint,
and then swallowing the exception and printing
it to the log.

Instead:
 * Ensure it's only trying to delete mnt if it created it
 * Don't swallow those exceptions: if deleting the dirs
   fails then something has gone wrong and it should bubble
   up.

Signed-off-by: John Spray <john.spray@redhat.com>
teuthology/task/workunit.py