neil / rpms / udisks2

Forked from rpms/udisks2 a year ago
Clone

Blame SOURCES/udisks-2.10.0-vdo_test_writeAmplificationRatio.patch

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