Autopilot always wants to emulate Nexus10 on desktop for UITK gallery tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I get a lot of failures like this:
Traceback (most recent call last):
File "/home/
self.
File "/home/
Eventually(
File "/usr/lib/
raise mismatch_error
testtools.
because my screen resolution is not high enough to emulate Nexus10. Those scenarios should only be executed when the screen resolution is sufficient.
For easy reproducability, here I run a single test that fails because of the screen resolution:
tim@ubuntu: ~/dev/ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ autopilot$ autopilot3 run ubuntuuitoolkit .tests. gallery. test_gallery. GalleryAppTestC ase.test_ progress_ and_activity dev/ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ autopilot
Loading tests from: /home/tim/
Tests running... request. QueryExtension' > request. QueryExtension' > ======= ======= ======= ======= ======= ======= ======= ======= ======= .tests. gallery. test_gallery. GalleryAppTestC ase.test_ progress_ and_activity( Simulating Nexus 10 in desktop) ------- ------- ------- ------- ------- ------- ------- ------- ------- eenshot (image/png) tim/dev/ ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ launcher/ launcher)
<class 'Xlib.protocol.
<class 'Xlib.protocol.
=======
FAIL: ubuntuuitoolkit
-------
Binary content:
FailedTestScr
Empty attachments:
/var/log/syslog
process-stdout (/home/
process-return-code (/home/ tim/dev/ ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ launcher/ launcher) : {{{-15}}} tim/dev/ ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ launcher/ launcher) : {{{Testability driver loaded. Wire protocol version is "1.4".}}} tim/dev/ ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ launcher/ launcher' with arguments '-I /home/tim/ dev/ubuntu- ui-toolkit/ m/multiColumnHe ader/modules /home/tim/ dev/ubuntu- ui-toolkit/ m/multiColumnHe ader/examples/ ubuntu- ui-toolkit- gallery/ ubuntu- ui-toolkit- gallery. qml --desktop_ file_hint= /home/tim/ .local/ share/applicati ons/ubuntu- ui-toolkit- gallery. desktop' as a normal process tim/dev/ ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ launcher/ launcher' , '-testability', '-I', '/home/ tim/dev/ ubuntu- ui-toolkit/ m/multiColumnHe ader/modules' , '/home/ tim/dev/ ubuntu- ui-toolkit/ m/multiColumnHe ader/examples/ ubuntu- ui-toolkit- gallery/ ubuntu- ui-toolkit- gallery. qml', '--desktop_ file_hint= /home/tim/ .local/ share/applicati ons/ubuntu- ui-toolkit- gallery. desktop' ]
process-stderr (/home/
test-log: {{{
17:12:25.465 INFO _launcher:373 - Attempting to launch application '/home/
17:12:25.471 INFO _launcher:431 - Launching process: ['/home/
17:12:37.315 INFO _launcher:544 - waiting for process to exit.
17:12:37.315 INFO _launcher:567 - Killing process 33014
}}}
Traceback (most recent call last): tim/dev/ ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ autopilot/ ubuntuuitoolkit /tests/ gallery/ __init_ _.py", line 54, in setUp resize_ window( ) tim/dev/ ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ autopilot/ ubuntuuitoolkit /tests/ gallery/ __init_ _.py", line 77, in resize_window Equals( (self.app_ width, self.app_height)))) python3/ dist-packages/ testtools/ testcase. py", line 423, in assertThat matchers. _impl.MismatchE rror: After 10.0 seconds test failed: (1280, 800) != (1280, 776)
File "/home/
self.
File "/home/
Eventually(
File "/usr/lib/
raise mismatch_error
testtools.
Ran 2 tests in 16.930s ~/dev/ubuntu- ui-toolkit/ m/multiColumnHe ader/tests/ autopilot$
FAILED (failures=1)
tim@ubuntu: