neil / rpms / udisks2

Forked from rpms/udisks2 a year ago
Clone

Blame SOURCES/udisks-2.10.0-vdo_test_writeAmplificationRatio.patch

7b1f2e
From 0edd6f5579c964323d86897aff9476c20d7901ba Mon Sep 17 00:00:00 2001
7b1f2e
From: Vojtech Trefny <vtrefny@redhat.com>
7b1f2e
Date: Mon, 22 Nov 2021 14:23:08 +0100
7b1f2e
Subject: [PATCH] tests: Do not check that writeAmplificationRatio is bigger
7b1f2e
 than 0
7b1f2e
7b1f2e
Apparently the bios_in_write value is now 0 for newly created VDO
7b1f2e
pools and because we use it for the writeAmplificationRatio
7b1f2e
calculation we get zero too.
7b1f2e
---
7b1f2e
 src/tests/dbus-tests/test_20_LVM.py | 1 -
7b1f2e
 1 file changed, 1 deletion(-)
7b1f2e
7b1f2e
diff --git a/src/tests/dbus-tests/test_20_LVM.py b/src/tests/dbus-tests/test_20_LVM.py
7b1f2e
index 7fbff0434..fde7c3f3f 100644
7b1f2e
--- a/src/tests/dbus-tests/test_20_LVM.py
7b1f2e
+++ b/src/tests/dbus-tests/test_20_LVM.py
7b1f2e
@@ -508,7 +508,6 @@ def test_create(self):
7b1f2e
         # get statistics and do some simple sanity check
7b1f2e
         stats = lv.GetStatistics(self.no_options, dbus_interface=self.iface_prefix + '.VDOVolume')
7b1f2e
         self.assertIn("writeAmplificationRatio", stats.keys())
7b1f2e
-        self.assertGreater(float(stats["writeAmplificationRatio"]), 0)
7b1f2e
 
7b1f2e
     def test_enable_disable_compression_deduplication(self):
7b1f2e
         vgname = 'udisks_test_vdo_vg'