From: "Richard W.M. Jones" <rjones(a)redhat.com>
Break virtio-scsi where the devices are /dev/sda etc.
---
tests/lvm/test-lvm-mapping.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/lvm/test-lvm-mapping.pl b/tests/lvm/test-lvm-mapping.pl
index 3e6faa5..b92a5c5 100755
--- a/tests/lvm/test-lvm-mapping.pl
+++ b/tests/lvm/test-lvm-mapping.pl
@@ -81,7 +81,7 @@ foreach my $uuid (@lvuuids_in_VG) {
@lvs_in_VG = sort @lvs_in_VG;
unless (@pvs_in_VG == 2 &&
- $pvs_in_VG[0] eq "/dev/vda1" && $pvs_in_VG[1] eq
"/dev/vda2") {
+ $pvs_in_VG[0] =~ m{/dev/.da1} && $pvs_in_VG[1] =~ m{/dev/.da2}) {
die "unexpected set of PVs for volume group VG: [",
join (", ", @pvs_in_VG), "]\n"
}
--
1.7.10.1