From 1e464f917aa1b26337ce602ed7f2a7e44e25358a Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 4 Dec 2009 16:56:42 +0100 Subject: [PATCH 6/6] testsuite: check that FilesystemUnmount() removes the mount point --- tests/run | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tests/run b/tests/run index 3a61780..dadfd54 100755 --- a/tests/run +++ b/tests/run @@ -550,6 +550,7 @@ class FS(UDisksTestCase): # unmount self.retry_busy(self.partition_iface().FilesystemUnmount, []) + self.failIf(os.path.exists(mount_path), 'mount point was not removed') i = self.get_info() self.assertEqual(i['is mounted'], '0') @@ -564,6 +565,7 @@ class FS(UDisksTestCase): st = os.stat(mount_path) self.assertEqual((st.st_uid, st.st_gid), (1, 8)) self.retry_busy(self.partition_iface().FilesystemUnmount, []) + self.failIf(os.path.exists(mount_path), 'mount point was not removed') # change label if supports_label_rename: @@ -669,6 +671,7 @@ class Luks(UDisksTestCase): # umount self.retry_busy(clear_iface.FilesystemUnmount, []) + self.failIf(os.path.exists(mount_path), 'mount point was not removed') i = self.get_info() self.assertEqual(i['is mounted'], '0') self.assertEqual(i['mount paths'], '') -- 1.6.5