]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-64-UDEV-STORAGE: Skip LVM subtests on Ubuntu
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 13 May 2024 17:08:42 +0000 (19:08 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 May 2024 10:43:28 +0000 (12:43 +0200)
These fail for unknown reasons on Ubuntu. Until someone from Ubuntu
who cares can figure out why, let's skip these tests on Ubuntu.

test/units/TEST-64-UDEV-STORAGE.sh

index fe40c2eed88f7bc6ee5a25763aa7e211051cb19e..3450813dff65198457d3bb740cf4272162484942 100755 (executable)
@@ -545,6 +545,12 @@ testcase_lvm_basic() {
         /dev/disk/by-id/scsi-0systemd_foobar_deadbeeflvm{0..3}
     )
 
+    . /etc/os-release
+    if [[ "$ID" == "ubuntu" ]]; then
+        echo "LVM on Ubuntu is broken, skipping the test" | tee --append /skipped
+        exit 77
+    fi
+
     if [[ -v ASAN_OPTIONS || "$(systemd-detect-virt -v)" == "qemu" ]]; then
         timeout=180
     else
@@ -853,6 +859,12 @@ testcase_iscsi_lvm() {
         /dev/disk/by-id/scsi-0systemd_foobar_deadbeefiscsi{0..3}
     )
 
+    . /etc/os-release
+    if [[ "$ID" == "ubuntu" ]]; then
+        echo "LVM on Ubuntu is broken, skipping the test" | tee --append /skipped
+        exit 77
+    fi
+
     ls -l "${devices[@]}"
 
     # Start the target daemon (debian names it tgt.service so make sure we handle that)