Skip to content

Commit

Permalink
test: Explicitly trigger udev after resizing ext4
Browse files Browse the repository at this point in the history
UDisks2 now reads filesystem sizes from udev, which seems to sometimes
need an extra trigger.
  • Loading branch information
mvollmer authored and martinpitt committed Sep 8, 2023
1 parent 14c07d7 commit 2e4bc9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/verify/check-storage-resize
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class TestStorageResize(storagelib.StorageCase):
# and unmount the fs explicitly. But then we also need to
# check it explicitly.
#
self.machine.execute(f"(! findmnt -S '{fs_dev}' || umount '{fs_dev}') && fsadm -y check '{fs_dev}' && fsadm -y resize '{fs_dev}' '{size}'")
self.machine.execute(f"(! findmnt -S '{fs_dev}' || umount '{fs_dev}'); fsadm -y check '{fs_dev}'; fsadm -y resize '{fs_dev}' '{size}'; udevadm trigger")

def testGrowShrinkHelp(self):
m = self.machine
Expand Down

0 comments on commit 2e4bc9f

Please sign in to comment.