Skip to content

Commit f2c6afa

Browse files
committed
TEST-64-UDEV-STORAGE: Skip LVM subtests on Ubuntu
These fail for unknown reasons on Ubuntu. Until someone from Ubuntu who cares can figure out why, let's skip these tests on Ubuntu.
1 parent 2cf6f55 commit f2c6afa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,12 @@ testcase_lvm_basic() {
545545
/dev/disk/by-id/scsi-0systemd_foobar_deadbeeflvm{0..3}
546546
)
547547

548+
. /etc/os-release
549+
if [[ "$ID" == "ubuntu" ]]; then
550+
echo "LVM on Ubuntu is broken, skipping the test" | tee --append /skipped
551+
exit 77
552+
fi
553+
548554
if [[ -v ASAN_OPTIONS || "$(systemd-detect-virt -v)" == "qemu" ]]; then
549555
timeout=180
550556
else
@@ -853,6 +859,12 @@ testcase_iscsi_lvm() {
853859
/dev/disk/by-id/scsi-0systemd_foobar_deadbeefiscsi{0..3}
854860
)
855861

862+
. /etc/os-release
863+
if [[ "$ID" == "ubuntu" ]]; then
864+
echo "LVM on Ubuntu is broken, skipping the test" | tee --append /skipped
865+
exit 77
866+
fi
867+
856868
ls -l "${devices[@]}"
857869

858870
# Start the target daemon (debian names it tgt.service so make sure we handle that)

0 commit comments

Comments
 (0)