From c530bfdbf6c4f1d3fd90956e35ae0355ff95966e Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Thu, 27 Aug 2026 17:31:45 +0200 Subject: [PATCH] tests: Cleanup PV signature in UdisksLVMTest.test_60_pvs Normally all devices are wiped when removing the VG but in this case we are testing removing PV from a VG so the PV is no longer in a VG at the end of the test and is not wiped and the PV signature left on the device is sometimes causing issues in later tests. --- src/tests/dbus-tests/test_20_LVM.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/dbus-tests/test_20_LVM.py b/src/tests/dbus-tests/test_20_LVM.py index 6926f5fa8..e46ca4c2e 100644 --- a/src/tests/dbus-tests/test_20_LVM.py +++ b/src/tests/dbus-tests/test_20_LVM.py @@ -576,6 +576,9 @@ def test_60_pvs(self): _ret, out = self.run_command('pvs --noheadings -o vg_name %s' % self.vdevs[0]) self.assertEqual(out, '') + # the device is no longer part of the VG so normal cleanup won't remove the PV signature + _ret, _out = self.run_command('pvremove %s' % self.vdevs[0]) + def test_devices_file(self): '''Test that we correctly handle the LVM devices file'''