[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 1/3] ts-windows-install: Honour memsize and disksize guest runvars



Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CC: Wei Liu <wei.liu2@xxxxxxxxxx>
CC: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
---
 ts-windows-install | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/ts-windows-install b/ts-windows-install
index 5ee127d..4dc8f2a 100755
--- a/ts-windows-install
+++ b/ts-windows-install
@@ -27,17 +27,19 @@ our ($whhost) = @ARGV;
 $whhost ||= 'host';
 our $ho= selecthost($whhost);
 
+our $gn = 'win';
 our $gho;
 
-our $ram_mb=   1536;
-our $disk_mb= 32000;
-
 our $guesthost= 'win.guest.osstest';
 
 sub prep () {
     target_install_packages_norec($ho, qw(lvm2 rsync));
 
-    $gho= prepareguest($ho, 'win', $guesthost, 8936,
+    my $ghot = guest_template($gn);
+    my $ram_mb = guest_var($ghot, 'memsize', 1536);
+    my $disk_mb = guest_var($ghot, 'disksize', 32000);
+
+    $gho= prepareguest($ho, $gn, $guesthost, 8936,
                        $disk_mb + 1,
                        300);
 
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.