Skip to content

Commit 8ffd11c

Browse files
authoredDec 10, 2024··
Merge pull request #1332 from vojtechtrefny/master_lvm-tests-fix
Various test fixes
2 parents 3aeec53 + 268b9b8 commit 8ffd11c

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed
 

‎src/tests/dbus-tests/skip.yml

-12
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,3 @@
2929
- distro: ["centos", "enterprise_linux"]
3030
version: "7"
3131
reason: "SCSI debug bug causing kernel panic on CentOS/RHEL 7"
32-
33-
- test: test_80_filesystem.EXFATTestCase.test_uuid
34-
skip_on:
35-
- distro: "fedora"
36-
version: ["39", "40", "41"]
37-
reason: Setting UUID with LC_ALL=C.UTF-8 is broken with recent exfatprogs
38-
39-
- test: test_20_LVM.UdisksLVMVDOTest
40-
skip_on:
41-
- distro: "centos"
42-
version: "10"
43-
reason: "vdo userspace tools are not yet available on RHEL/CentOS 10"

‎src/tests/dbus-tests/test_20_LVM.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def test_30_snapshot(self):
434434
# Create the origin LV
435435
vgsize = int(self.get_property_raw(vg, '.VolumeGroup', 'FreeSize'))
436436
lvname = 'udisks_test_origin_lv'
437-
lv_path = vg.CreatePlainVolume(lvname, dbus.UInt64(vgsize / 2), self.no_options,
437+
lv_path = vg.CreatePlainVolume(lvname, dbus.UInt64(vgsize // 3), self.no_options,
438438
dbus_interface=self.iface_prefix + '.VolumeGroup')
439439
lv = self.bus.get_object(self.iface_prefix, lv_path)
440440
self.assertIsNotNone(lv)
@@ -477,7 +477,7 @@ def test_40_cache(self):
477477
# Create the origin LV
478478
vgsize = int(self.get_property_raw(vg, '.VolumeGroup', 'FreeSize'))
479479
orig_lvname = 'udisks_test_origin_lv'
480-
lv_path = vg.CreatePlainVolume(orig_lvname, dbus.UInt64(vgsize / 2), self.no_options,
480+
lv_path = vg.CreatePlainVolume(orig_lvname, dbus.UInt64(vgsize // 3), self.no_options,
481481
dbus_interface=self.iface_prefix + '.VolumeGroup')
482482
lv = self.bus.get_object(self.iface_prefix, lv_path)
483483
self.assertIsNotNone(lv)
@@ -489,7 +489,7 @@ def test_40_cache(self):
489489
cache_lvname = 'udisks_test_cache_lv'
490490
vgsize = int(self.get_property_raw(vg, '.VolumeGroup', 'FreeSize'))
491491
# 8 MiB reserved for the cache metadata created automatically by LVM
492-
lv_cache_path = vg.CreatePlainVolume(cache_lvname, dbus.UInt64((vgsize / 2) - 8 * 1024**2), self.no_options,
492+
lv_cache_path = vg.CreatePlainVolume(cache_lvname, dbus.UInt64((vgsize // 3) - 8 * 1024**2), self.no_options,
493493
dbus_interface=self.iface_prefix + '.VolumeGroup')
494494
cache_lv = self.bus.get_object(self.iface_prefix, lv_cache_path)
495495
self.assertIsNotNone(cache_lv)

0 commit comments

Comments
 (0)
Please sign in to comment.