Merge lp:~fginther/unity/autopilot-showdesktop-cleanup into lp:unity
Status: | Merged |
---|---|
Approved by: | Francis Ginther |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2911 |
Proposed branch: | lp:~fginther/unity/autopilot-showdesktop-cleanup |
Merge into: | lp:unity |
Diff against target: |
36 lines (+18/-1) 1 file modified
tests/autopilot/unity/tests/__init__.py (+18/-1) |
To merge this branch: | bzr merge lp:~fginther/unity/autopilot-showdesktop-cleanup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Mrazik (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Timo Jyrinki | Approve | ||
Review via email: mp+134756@code.launchpad.net |
Commit message
Open a temporary app window to always allow exit from showdesktop_active mode.
If there are no application windows open, showdesktop_active can be set, but not cleared. This provides a hackish solution that will get unity back into the desired state for the next test. It does not solve the problem of a test attempting to leave showdesktop_active mode under these conditions.
Description of the change
Open a temporary app window to always allow exit from showdesktop_active mode.
If there are no application windows open, showdesktop_active can be set, but not cleared. This provides a hackish solution that will get unity back into the desired state for the next test. It does not solve the problem of a test attempting to leave showdesktop_active mode under these conditions.
Testing:
Before this change, I would see nearly 300 of the 464 tests fail with message "Test left the system in show desktop mode, exiting it...". After this change, I only saw one of these failures. Total failures went from 312 to 116. Testing was done on a virtual-box vm running unity 6.10.0bzr2895pk
Just two technical notes:
1. The linking to the bug is unfortunate. If this gets approved and merged the bug will be marked as "Fix Committed" which is not going to be the case. This branch is just a workaround for the bug and not a real fix.
2. If we don't want to get this into trunk (as it is just a workaround) maybe it can be maintained as a distro patch (which makes sense as the patch is indeed primarily for us being able to release unity continuously in ubuntu). The other option (implemented right now) is the utah-jenkins branch. Unfortunately if the patch doesn't merge cleanly we will only notice too late.
Francis, the Needs Fixing is for #1 from my POV (you can add the link to the bugreport into description). I leave the #2 for the others.