[Avocado-devel] Passing test parameters on the command-line?

Eduardo Habkost ehabkost at redhat.com
Thu Aug 23 14:26:55 UTC 2018


On Thu, Aug 23, 2018 at 11:08:54AM +0200, Amador Pahim wrote:
> On Thu, Aug 23, 2018 at 5:44 AM Eduardo Habkost <ehabkost at redhat.com> wrote:
> >
> > Hi,
> >
> > I am reading the docs about test parameters[1][2][3], and I
> > learned how to access them inside the test code.  But I couldn't
> > find one piece of information: what's the simplest way to _pass_
> > parameters to tests?
> 
> avocado run --mux-inject 'foo:bar' -- test.py
> 
> ("--mux-inject   Inject [path:]key:node values into the final multiplex tree.")

Thanks!  This looks like what I'm looking for.

I'm surprised that a core test API feature (test parameters) can
only be used through an optional plugin (yaml_to_mux).

-- 
Eduardo




More information about the Avocado-devel mailing list