Merge lp:~veebers/autopilot/fix_for_config_init into lp:autopilot
| Status: | Merged |
|---|---|
| Approved by: | Christopher Lee on 2015-03-12 |
| Approved revision: | 547 |
| Merged at revision: | 545 |
| Proposed branch: | lp:~veebers/autopilot/fix_for_config_init |
| Merge into: | lp:autopilot |
| Diff against target: |
74 lines (+36/-10) 2 files modified
autopilot/run.py (+11/-10) autopilot/tests/functional/test_autopilot_functional.py (+25/-0) |
| To merge this branch: | bzr merge lp:~veebers/autopilot/fix_for_config_init |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-03-11 | |
| Richard Huddie (community) | Approve on 2015-03-11 | ||
| Leo Arias | 2015-03-05 | Approve on 2015-03-10 | |
|
Review via email:
|
|||
Commit Message
Move config parsing to happen before test import.
Description of the Change
Move config parsing to happen before test import. Ensures config details available within decorators.
| Leo Arias (elopio) wrote : | # |
This looks good. Can we write a test for it?
I think that using a mock and checking the order of the calls would be good.
Even better if we add a skip decorator in a test that uses a config value.
- 546. By Christopher Lee on 2015-03-10
-
Failing test for config available in decorator
- 547. By Christopher Lee on 2015-03-10
-
test is passing (no functional code change, demos that config now available)
| Christopher Lee (veebers) wrote : | # |
@Leo, I've added a first pass at a functional test for this as requested.
I'm not son keen on doing a test using mocks etc. to check the order of the calls. The calls are static and we can see them in the source file (e.g. they aren't conditionally run etc.) as well as the whole suite of tests that cover the execution of this part of the code which should give us coverage already.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:547
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| Leo Arias (elopio) wrote : | # |
Without the fix the test fails. With it the test passes.
I actually prefer this to be tested in the functional suite, so +2.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:547
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:547
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| Richard Huddie (rhuddie) wrote : | # |
This all looks good, very interesting how the new test case is done. Test passes for me.
| Leo Arias (elopio) wrote : | # |
Asking ci again about the tests. They are stuck.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:547
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:547
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:547
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| Christopher Lee (veebers) wrote : | # |
Top approving as it has the required 2x approves and now that CI is resolved they are passing.

PASSED: Continuous integration, rev:545 jenkins. qa.ubuntu. com/job/ autopilot- ci/1017/ jenkins. qa.ubuntu. com/job/ autopilot- vivid-amd64- ci/80 jenkins. qa.ubuntu. com/job/ autopilot- vivid-amd64- ci/80/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ autopilot- vivid-armhf- ci/80 jenkins. qa.ubuntu. com/job/ autopilot- vivid-armhf- ci/80/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ autopilot- vivid-i386- ci/80 jenkins. qa.ubuntu. com/job/ autopilot- vivid-i386- ci/80/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 1657 jenkins. qa.ubuntu. com/job/ generic- mediumtests- vivid-autopilot /118 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 1470 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 1655 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 1655/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 18573 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-vivid- autopilot/ 114 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-amd64/ 802 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-amd64/ 802/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/autopilot- ci/1017/ rebuild
http://