integration-test: Consistent mount path validation
authorMartin Pitt <martinpitt@gnome.org>
Wed, 22 Aug 2012 10:28:56 +0000 (12:28 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Wed, 22 Aug 2012 10:28:56 +0000 (12:28 +0200)
Do not require mount paths to be in /run/media/, leave that as an
implementation detail (the code supports both cases). The other mount point
tests already do this.

src/tests/integration-test

index cd3eee3..22bee38 100755 (executable)
@@ -806,7 +806,7 @@ class FS(UDisksTestCase):
         # mount
         mount_path = fs.call_mount_sync(no_options, None)
 
-        self.assertTrue(mount_path.startswith('/run/media/'), mount_path)
+        self.assertTrue('/media/' in mount_path)
         if label:
             self.assertTrue(mount_path.endswith(label))