[Libguestfs] [PATCH v2 7/9] tests/lvm: Don't hard-code /dev/vda in test.

Richard W.M. Jones rjones at redhat.com
Tue Jun 12 21:15:52 UTC 2012


From: "Richard W.M. Jones" <rjones at 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




More information about the Libguestfs mailing list