Re: [Autotest] [KVM-AUTOTEST PATCH] KVM test: refactor kvm_config.py

Avi Kivity
2011-02-10T11:03:58Z

On 02/10/2011 12:57 PM, Michael Goldish wrote:
> >
> > I can't easily think of a case where this might cause confusion. The
> > purpose of this is to allow people to write:
> >
> > only qcow2..raw..rtl8139
> >
> > without having to remember the order in which those were defined in
> > tests_base.cfg.
>
> Sorry, I meant something like
>
> only qcow2..hugepages..rtl8139
>
> Obviously qcow2 and raw can't coexist.

The config files describe a cartesian product, in which order matters.

[A B C] x [1 2] generates [A1 A2 B1 B2 C1 C2]; no confusion here if you
specify A..1

however

[A B C] x [A B] generates [AA AB BA BB CA CB]; A..B is ambiguous

we might require that keywords be unique.

--
error compiling committee.c: too many arguments to function