Change default options passed to tests in lava-test

Registered by Paul Larson

As a tester, I would like to be able to override the default arguments passed to the test, so that I can modify the way the test runs without creating a new test definition.

Blueprint information

Status:
Complete
Approver:
Paul Larson
Priority:
Medium
Drafter:
Le Chi Thu
Direction:
Approved
Assignee:
Le Chi Thu
Definition:
Approved
Series goal:
Accepted for linaro-11.11
Implementation:
Implemented
Milestone target:
milestone icon 2011.10
Started by
Le Chi Thu
Completed by
Fathi Boudra

Related branches

Sprints

Whiteboard

Question from investigation :

A lava-test contains one or more run steps. When specify the argument to the test steps, what is the format of that ?

For example: lava-test run streams "arg1 arg2" - for which step ?, difference arguments for each step ? or only limited to test with on step ?
[pwlars] I'm not sure what you mean by a step... we can discuss over email if you like
[fboudra, Sep 1 2011] Headline and acceptance criteria are missing.
[pwlars, Sep 8 2011] Headline and acceptance criteria added.
[fboudra, Sep 8 2011] blueprint re-targeted to 2011.10.
[fboudra, 2011-10-25] Set the status to implemented. We'll track the remaining WI as LP: #882269

Headline: Default test options for tests running in LAVA can be overridden by the requester of the test.

Acceptance:
1. lava-test has a parameter for the run command that can be used to view the default options for a test
2. lava-test has a parameter that can be used to override the default options for a test
3. lava-dispatcher can take a parameter to pass a new set of options to a test running under it

(?)

Work Items

Work items:
Change existing tests to split out the arguments passed to the test as a variable: DONE
Add lava-test run parameter to allow viewing the default arguments passed to a test: TODO
Add lava-test run parameter to allow overriding arguments passed to the test with custom args: DONE
Add parameter for lava_test_run action in the dispatcher to allow passing new arguments to the test: DONE
Extend result submission from lava-test to include an attribute for the test run that contains the parameters used, even when the default ones are used: DONE

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.