test_capture.TestCapture.test_shoot_button_disable autopilot test failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
camera-app |
Fix Released
|
High
|
Günter Schwann | ||
camera-app (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Image: touch_ro build 56 (and others)
We sometimes see the camera-app tests fail on test_capture.
Here's a traceback from a recent failure:
21:25:04.845 INFO globals:49 - *******
21:25:04.846 INFO globals:50 - Starting test camera_
21:25:04.847 WARNING testcase:118 - No tracing available - install the python-
21:25:04.916 WARNING testcase:155 - Process manager backend unavailable, application snapshot support disabled.
21:25:04.934 INFO __init__:157 - Launching process: ['/usr/
21:25:05.311 INFO __init__:404 - dbus.DBusException while attempting to get PID for org.freedesktop
21:25:06.590 DEBUG dbus:430 - Selecting objects of type QQuickView with attributes: {}
21:25:06.643 DEBUG dbus:430 - Selecting objects of type ShootButton with attributes: {}
21:25:06.679 INFO testcase:553 - waiting for process to exit.
21:25:06.679 INFO testcase:555 - Killing process 2164
}}}
Traceback (most recent call last):
File "/usr/lib/
self.assertEqua
File "/usr/lib/
self.assertThat
File "/usr/lib/
raise MismatchError(
MismatchError: Boolean(False) != True
Ran 1 test in 2.433s
FAILED (failures=1)
More detailed logs can be found at: https:/
Related branches
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Omer Akram (community): Approve
-
Diff: 33 lines (+7/-1)1 file modifiedtests/autopilot/camera_app/tests/test_capture.py (+7/-1)
Changed in camera-app: | |
status: | Fix Committed → Fix Released |
It's a test that has a high race condition (http:// bazaar. launchpad. net/~phablet- team/camera- app/trunk/ view/head: /tests/ autopilot/ camera_ app/tests/ test_capture. py#L141)
Look at the final 3 lines there:
self.pointing_ device. click()
The point of the test seems to:
1- take a photo
2- see that the shutter is disabled (since camera is not ready)
3- reenable shutter (since camera is ready for new snaps)
Observations:
- The time between 2 and 3 can be anything.
- Nothing triggers the final assert, hence it's testing a transition.
- The 'False' assert could already have been done by the time it's 'looked' at.