Merge lp:~om26er/unity8/unlocker_fix_non_working_code into lp:unity8
- unlocker_fix_non_working_code
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Albert Astals Cid |
Approved revision: | 524 |
Merged at revision: | 544 |
Proposed branch: | lp:~om26er/unity8/unlocker_fix_non_working_code |
Merge into: | lp:unity8 |
Diff against target: |
11 lines (+1/-1) 1 file modified
tests/autopilot/unity8/process_helpers.py (+1/-1) |
To merge this branch: | bzr merge lp:~om26er/unity8/unlocker_fix_non_working_code |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Michał Sawicz | Needs Fixing | ||
Christopher Lee (community) | Approve | ||
Michael Zanetti (community) | Approve | ||
Review via email: mp+194850@code.launchpad.net |
Commit message
make the non working code in the screen unlocker helper work
Description of the change
the code which check if the screen was already unlocked was not working because greeter is never None even when it is not shown on screen.
Omer Akram (om26er) wrote : | # |
Michael Zanetti (mzanetti) wrote : | # |
False is not defined
Michael Zanetti (mzanetti) wrote : | # |
/me stupid... looks good
Christopher Lee (veebers) wrote : | # |
Hi Omer,
Good catch with greeter not being None.
WRT raising an exception or logging; My thought process was that someone might want the greeter to be locked and thus would like to be alerted of that.
As it currently stands callers of unlock_unity() can wrap the call in a try..except.
I'm not married to this though and perhaps there is an argument that I'm trying to solve a problem that doesn't exist and that just logging makes the code cleaner and easier then we should change it to just log instead.
Omer Akram (om26er) wrote : | # |
> Hi Omer,
>
> Good catch with greeter not being None.
>
> WRT raising an exception or logging; My thought process was that someone might
> want the greeter to be locked and thus would like to be alerted of that.
right, that might be really rare case but in the current form we have multiple problems i.e. only the first test passing and every other after that failing due to screen being unlocked.
>
> As it currently stands callers of unlock_unity() can wrap the call in a
> try..except.
This will result in each app doing exactly the same thing in its code, why not provide a reusable ensure_
> I'm not married to this though and perhaps there is an argument that I'm
> trying to solve a problem that doesn't exist and that just logging makes the
> code cleaner and easier then we should change it to just log instead.
Lets move the conversation over to bug 1250458
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:521
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Francis Ginther (fginther) wrote : | # |
Re-approving after resolving jenkins config error for generic-
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:521
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Omer Akram (om26er) wrote : | # |
wow. Come on.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Michał Sawicz (saviq) wrote : | # |
Actually... I'm afraid there's a conflict here...
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Christopher Lee (veebers) wrote : | # |
The failure in the qmluitests is due to the testDashContents tests causing a segfault.
(You can see this by checking out the console log and searching for 'segmentation fault')
The segfault means that the newly created testDashContent.xml file is never populated with details. The jenkins job then sees this 0-length file and considers it indicative of a failed test and marks the job as UNSTABLE.
I'll just create a bug for this so we can keep track of it . . . here it is: https:/
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:524
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
PS Jenkins bot (ps-jenkins) : | # |
Preview Diff
1 | === modified file 'tests/autopilot/unity8/process_helpers.py' |
2 | --- tests/autopilot/unity8/process_helpers.py 2013-11-19 20:53:04 +0000 |
3 | +++ tests/autopilot/unity8/process_helpers.py 2013-11-20 16:19:44 +0000 |
4 | @@ -67,7 +67,7 @@ |
5 | main_window = MainWindow(unity_proxy_obj) |
6 | |
7 | greeter = main_window.get_greeter() |
8 | - if greeter is None: |
9 | + if greeter.created == False: |
10 | raise RuntimeWarning("Greeter appears to be already unlocked.") |
11 | greeter.swipe() |
12 |
I trying to get this change merged for the code to atleast work but I think this part of the code does not make sense.
If the unlocker is to be consumed by our apps their tests will fail because whenever we run a test suite of an app while the screen is unlocked the tests would fail or even if the tests are run with the screen locked after the first test runs every next test will fail since the screen will be unlocked. Instead of raising a warning I think it would make more sense to just use the python logger to log that the screen is already unlocked.