[Avocado-devel] Multiplex and avocado-vt

Cleber Rosa crosa at redhat.com
Thu Nov 19 21:42:21 UTC 2015


Hi Olav,

Avocado-vt tests, by default, do not use the parameters from the multiplex. By default, is parameters come from the precursor of the multiplexer (known as the cartesian config file).

But, Avocado actually sends the parameters over, and there's a way to actually use them from within avocado-vt tests. The syntax (from within a test) is:

   sleep_length = self.avocado_params.get('sleep_length', default=1)

The parameter 'sleep_length' is a parameter that should come from the multiplexer.

About Avocado-virt: this is where a more native (and pleasant) experience should be found. Unfortunately, it's still far from the same level of features and tests as Avocado-vt. But, Avocado-virt should receive most of our development energy from now on.

If you feel that Avocado-virt better suits your needs, great! Let's work together on that!

BTW, a few pointers on Avocado-vt + multiplexer:

 - https://github.com/avocado-framework/avocado-vt/blob/master/avocado/core/plugins/vt.py#L254
 - https://github.com/avocado-framework/avocado-vt/blob/master/avocado/core/plugins/vt.py#L321


Thanks,
CR.

----- Original Message -----
> From: "Olav Philipp Henschel" <olavph at linux.vnet.ibm.com>
> To: avocado-devel at redhat.com
> Sent: Thursday, November 19, 2015 4:09:06 PM
> Subject: [Avocado-devel] Multiplex and avocado-vt
> 
> Now that I got multiplexing to work, I've tried to use it with
> avocado-vt and didn't get the expected results.
> It prints the "Multiplex tree representation" and executes the tests
> once for each variant, but the tests didn't get the param values.
> I've noticed the params in new tests are an attribute of the Test class,
> which is not used in avocado-vt.
> 
> Is it even possible to multiplex avocado-vt tests?
> If not, what's the current status on avocado-virt? Can we port other
> distros as guests already?
> 
> Any information is appreciated,
> Olav P. Henschel
> 
> _______________________________________________
> Avocado-devel mailing list
> Avocado-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/avocado-devel
> 




More information about the Avocado-devel mailing list