]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: Fix error in test_filtered_df 17701/head
authorDouglas Fuller <dfuller@redhat.com>
Wed, 13 Sep 2017 18:00:20 +0000 (14:00 -0400)
committerDouglas Fuller <dfuller@redhat.com>
Wed, 13 Sep 2017 18:02:24 +0000 (14:02 -0400)
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>
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