]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: wipe filesystem before moving to the next test case 32914/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 May 2024 20:10:28 +0000 (05:10 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 May 2024 20:10:28 +0000 (05:10 +0900)
test/units/TEST-64-UDEV-STORAGE.sh

index c97db41da69ce5382ffbb692b4206e3f87ed39c4..087968f42d3d036c7635b1882ed267c13dfb097f 100755 (executable)
@@ -772,6 +772,8 @@ EOF
     btrfs filesystem show
     helper_check_device_symlinks
     helper_check_device_units
+    wipefs -a -f "${devices[@]}"
+    udevadm wait --settle --timeout=30 --removed "/dev/disk/by-uuid/$uuid" "/dev/disk/by-label/$label"
 
     echo "Multiple devices: using LUKS encrypted disks, data: raid1, metadata: raid1, mixed mode"
     uuid="deadbeef-dead-dead-beef-000000000003"