On Tue, Aug 02, 2011 at 05:19:36PM +0200, Pedro Macedo wrote:
> 
> Signed-off-by: Pedro Macedo <[email protected]>
> ---
>  tools/burnin |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/tools/burnin b/tools/burnin
> index 86dc105..7d28c36 100755
> --- a/tools/burnin
> +++ b/tools/burnin
> @@ -126,6 +126,9 @@ OPTIONS = [
>                   default=128, type="unit", metavar="<size>",
>                   completion_suggest=("128M 256M 512M 1G 4G 8G"
>                                       " 12G 16G").split()),
> +  cli.cli_option("--vcpu-count", dest="vcpu_count", help="VCPU count",
> +                 default=3, type="unit", metavar="<count>",
> +                 completion_suggest=("1 2 3 4").split()),
>    cli.DEBUG_OPT,
>    cli.VERBOSE_OPT,
>    cli.NOIPCHECK_OPT,
> @@ -473,7 +476,7 @@ class Burner(object):
>      self.instances = args
>      self.bep = {
>        constants.BE_MEMORY: options.mem_size,
> -      constants.BE_VCPUS: 1,
> +      constants.BE_VCPUS: options.vcpu_count,
>        }

LGTM. I'll commit to devel-2.4 so it gets into 2.4.3 as well.

thanks,
iustin

Reply via email to