diff mbox

[OSSTEST,10/16] TestSupport: guest_unprepare_disk: Make a no-op for guests with no Lvdev

Message ID 1475858096-16123-11-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson Oct. 7, 2016, 4:34 p.m. UTC
This includes some rump kernel tests.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 Osstest/TestSupport.pm | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index bc3ad13..a63ff26 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -1601,6 +1601,7 @@  END
 
 sub guest_unprepare_disk ($) {
     my ($gho) = @_;
+    return unless defined $gho->{Lvdev};
     return if $gho->{Diskfmt} eq "none";
     target_cmd_root($gho->{Host}, <<END);
 umount $gho->{Lvdev} || :