Merge lp://staging/~liuyq0307/lava-android-test/command-file into lp://staging/lava-android-test
Proposed by
Yongqin Liu
Status: | Superseded |
---|---|
Proposed branch: | lp://staging/~liuyq0307/lava-android-test/command-file |
Merge into: | lp://staging/lava-android-test |
Diff against target: |
240 lines (+91/-19) 2 files modified
lava_android_test/commands.py (+54/-16) lava_android_test/testdef.py (+37/-3) |
To merge this branch: | bzr merge lp://staging/~liuyq0307/lava-android-test/command-file |
Related bugs: | |
Related blueprints: |
Support custom android command
(Essential)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Linaro Validation Team | Pending | ||
Review via email: mp+97870@code.staging.launchpad.net |
This proposal supersedes a proposal from 2012-03-15.
This proposal has been superseded by a proposal from 2012-03-18.
Description of the change
1. Add support to push a specified android command file to android and run it on android.
2. Add some process for deal with the test result
3. Modify to use add_mutually_
4. Change result patterns to Parser member, so that we can change them out of the class
To post a comment you must log in.
32 + if self.args. android_ command and self.args. command_ file: r("Please specified one option of -c and -f") android_ command and not self.args. command_ file: r("Please specified one option of -c and -f")
33 + raise LavaCommandErro
34 + if not self.args.
35 + raise LavaCommandErro
You should use mutex group instead:
group = parser. add_mutually_ exclusive_ group() argument( '-f', ...) argument( '-c', ...)
group.add_
group.add_
Then argparse will this check for you.
53 + STEPS_HOST_PRE = ["wget %s -O %s" % (file_url, file_name)]
I'd like us to use python on the host if possible. Downloading stuff with wget eventually means we have no error handling. This can stay as-is but we should look at the problem of how we download anything throughout lava and fix it.