Merge lp:~roadmr/checkbox/804369-808423 into lp:checkbox
Status: | Merged |
---|---|
Merged at revision: | 955 |
Proposed branch: | lp:~roadmr/checkbox/804369-808423 |
Merge into: | lp:checkbox |
Diff against target: |
131 lines (+26/-22) 3 files modified
debian/changelog (+6/-1) scripts/keyboard_test (+9/-4) scripts/sleep_test (+11/-17) |
To merge this branch: | bzr merge lp:~roadmr/checkbox/804369-808423 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marc Tardif (community) | Approve | ||
Review via email: mp+67748@code.launchpad.net |
Description of the change
Fixes two bugs that cropped up in test scripts:
- keyboard_test used GTK and failed because it hadn't been properly converted to PyGI.
- sleep_test assumed the status codes from NetworkManager, used to validate the connection is active upon wakeup, were organized in an array (contiguous, 0-indexed). NM 0.9 uses arbitrary integers to indicate connection statuses, breaking the assumption. I structured the connected statuses list so that it's easy to account for changes in NM, and if it changes, the test will just exit cleanly and innocently after a sensible timeout, instead of dying horribly with a scary backtrace.
As is the code should work fine on both Natty and Oneiric, though I guess going forward it's only going to be used in Oneiric.
Looks good, thanks!