[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v5 05/13] TestSupport.pm: introduce guest_create
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- Osstest/TestSupport.pm | 10 ++++++++-- ts-redhat-install | 8 ++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 094508d..23e7f7d 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -93,7 +93,7 @@ BEGIN { guest_vncsnapshot_begin guest_vncsnapshot_stash guest_check_remus_ok guest_editconfig host_involves_pcipassthrough host_get_pcipassthrough_devs - toolstack + toolstack guest_create await_webspace_fetch_byleaf create_webfile file_link_contents get_timeout @@ -1243,7 +1243,13 @@ sub guest_await_reboot ($$$) { sub guest_destroy ($$) { my ($ho,$gho) = @_; target_cmd_root($ho, toolstack()->{Command}." destroy $gho->{Name}", 40); -} +} + +sub guest_create ($$) { + my ($gho,$toolstack) = @_; + target_cmd_root($gho->{Host}, "$toolstack create $gho->{CfgPath}", 100); +} + sub target_choose_vg ($$) { my ($ho, $mbneeded) = @_; diff --git a/ts-redhat-install b/ts-redhat-install index e1754f5..b29d2d4 100755 --- a/ts-redhat-install +++ b/ts-redhat-install @@ -164,13 +164,9 @@ END }); } -sub start () { - target_cmd_root($ho, "$xl create $gho->{CfgPath}", 100); -} - if (!$stage) { prep(); - start(); + guest_create($gho,$xl); } else { $gho= selectguest($gn,$gho); } @@ -180,6 +176,6 @@ if ($stage<2) { } guest_editconfig_nocd($gho,$emptyiso); -start(); +guest_create($gho,$xl); guest_await_dhcp_tcp($gho,300); guest_check_up($gho); -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |