[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OSSTEST v3 03/19] TestSupport: allow overring of on_* in prepareguest_part_xencfg
Currently only on_reboot can be overridden Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- Osstest/TestSupport.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index c0325c4..3074568 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1457,6 +1457,8 @@ sub prepareguest_part_lvmdisk ($$$) { sub prepareguest_part_xencfg ($$$$$) { my ($ho, $gho, $ram_mb, $xopts, $cfgrest) = @_; my $onreboot= $xopts->{OnReboot} || 'restart'; + my $onpoweroff= $xopts->{OnPowerOff} || 'destroy'; + my $oncrash= $xopts->{OnCrash} || 'preserve'; my $vcpus= guest_var($gho, 'vcpus', $xopts->{DefVcpus} || 2); my $xoptcfg= $xopts->{ExtraConfig}; $xoptcfg='' unless defined $xoptcfg; @@ -1465,9 +1467,9 @@ name = '$gho->{Name}' memory = ${ram_mb} vif = [ 'type=ioemu,mac=$gho->{Ether}' ] # -on_poweroff = 'destroy' +on_poweroff = '$onpoweroff' on_reboot = '$onreboot' -on_crash = 'preserve' +on_crash = '$oncrash' # vcpus = $vcpus # -- 2.1.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |