|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v3 19/19] Toolstack: Pass $gho to create method
The cfg file can be obtained from $gho->{CfgPath}. This is more
consistent with other methods.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
v3: New patch, implementing suggesting from review of "Toolstack:
Refactor guest lifecycle."
---
Osstest/TestSupport.pm | 2 +-
Osstest/Toolstack/libvirt.pm | 3 ++-
Osstest/Toolstack/xl.pm | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm
index 427ead4..086ac10 100644
--- a/Osstest/TestSupport.pm
+++ b/Osstest/TestSupport.pm
@@ -1340,7 +1340,7 @@ sub guest_await_destroy ($$) {
sub guest_create ($) {
my ($gho) = @_;
my $ho = $gho->{Host};
- toolstack($ho)->create($gho->{CfgPath});
+ toolstack($ho)->create($gho);
}
diff --git a/Osstest/Toolstack/libvirt.pm b/Osstest/Toolstack/libvirt.pm
index e9d3952..8bd7f4f 100644
--- a/Osstest/Toolstack/libvirt.pm
+++ b/Osstest/Toolstack/libvirt.pm
@@ -39,8 +39,9 @@ sub destroy ($$) {
}
sub create ($$) {
- my ($self,$cfg) = @_;
+ my ($self,$gho) = @_;
my $ho = $self->{Host};
+ my $cfg = $gho->{CfgPath};
my $lcfg = $cfg;
$lcfg =~ s,/,-,g;
$lcfg = "$ho->{Name}--$lcfg";
diff --git a/Osstest/Toolstack/xl.pm b/Osstest/Toolstack/xl.pm
index 5498c0a..71aefd5 100644
--- a/Osstest/Toolstack/xl.pm
+++ b/Osstest/Toolstack/xl.pm
@@ -40,7 +40,8 @@ sub destroy ($$) {
}
sub create ($$) {
- my ($self,$cfg) = @_;
+ my ($self,$gho) = @_;
+ my $cfg = $gho->{CfgPath};
target_cmd_root($self->{Host}, $self->{_Command}." create $cfg", 100);
}
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |