> -----Original Message-----
> From: Ian Jackson [mailto:ian.jack...@eu.citrix.com]
> Sent: 16 June 2017 18:34
> To: xen-de...@lists.xenproject.org
> Cc: Ian Jackson <ian.jack...@citrix.com>; Ian Jackson
> <ian.jack...@citrix.com>; Wei Liu <wei.l...@citrix.com>; Paul Durrant
> <paul.durr...@citrix.com>
> Subject: [OSSTEST PATCH 1/3] ts-windows-install: Honour memsize and
> disksize guest runvars
> 
> Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
> CC: Wei Liu <wei.l...@citrix.com>
> CC: Paul Durrant <paul.durr...@citrix.com>

Reviewed-by: Paul Durrant <paul.durr...@citrix.com>

> ---
>  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@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to