]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: Fix error in test_filtered_df
authorDouglas Fuller <dfuller@redhat.com>
Wed, 13 Sep 2017 18:00:20 +0000 (14:00 -0400)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 19 Oct 2017 02:28:51 +0000 (19:28 -0700)
ceph df accounts for pool size, so there is no need to do it in the test.

Fixes: http://tracker.ceph.com/issues/21381
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
(cherry picked from commit b059cb6290d81df07bd8ec4e1ec9ef0be24892a2)

qa/tasks/cephfs/test_misc.py

index 77ca07a194a1824bb663be2461088b219f62ced5..db362764b33c4c262be988fa6cc656ceb5567f4e 100644 (file)
@@ -147,5 +147,5 @@ class TestMisc(CephFSTestCase):
         fs_avail = output.split('\n')[1].split()[3]
         fs_avail = float(fs_avail) * 1024
 
-        ratio = (raw_avail / pool_size) / fs_avail
+        ratio = raw_avail / fs_avail
         assert 0.9 < ratio < 1.1