Merge lp:~lukas-kde/unity8/fixWizardReportingAutopilot into lp:unity8

Proposed by Lukáš Tinkl
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 2005
Merged at revision: 2016
Proposed branch: lp:~lukas-kde/unity8/fixWizardReportingAutopilot
Merge into: lp:unity8
Diff against target: 52 lines (+17/-7)
2 files modified
tests/autopilot/unity8/settings_wizard/__init__.py (+7/-2)
tests/autopilot/unity8/settings_wizard/tests/test_settings_wizard.py (+10/-5)
To merge this branch: bzr merge lp:~lukas-kde/unity8/fixWizardReportingAutopilot
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Albert Astals Cid (community) Approve
Review via email: mp+273914@code.launchpad.net

Commit message

Fix autopilot wizard test skipping the reporting page

Description of the change

Fix autopilot wizard test skipping the reporting page

Follow up to https://bugs.launchpad.net/bugs/1494442

* Are there any related MPs required for this MP to build/function as expected? Please list.

Yes

* Did you perform an exploratory manual test run of your code change and any related functionality?

Yes

* Did you make sure that your branch does not contain spurious tags?

Yes

* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

Yes

* If you changed the UI, has there been a design review?

N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2000
http://jenkins.qa.ubuntu.com/job/unity8-ci/6438/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4568
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-wily-touch/817
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1150
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-wily/469
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1045
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1046
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-amd64-ci/677
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-i386-ci/678
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/3705
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4565
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4565/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24092
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-mako/490
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/817
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/817/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24094

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6438/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/unity8/settings_wizard/tests/test_settings_wizard.py", line 91, in test_skipping_through_wizard
    if reportingPage is not None:
NameError: name 'reportingPage' is not defined

review: Needs Fixing
2001. By Lukáš Tinkl

init the variable

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2001
http://jenkins.qa.ubuntu.com/job/unity8-ci/6443/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4578
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-wily-touch/824
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1155
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-wily/474
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1050
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1051
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-amd64-ci/682
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-i386-ci/683
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/3711
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4575
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4575/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24103
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-mako/492
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/824
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/824/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24104

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6443/rebuild

review: Needs Fixing (continuous-integration)
2002. By Lukáš Tinkl

fixup var names

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2002
http://jenkins.qa.ubuntu.com/job/unity8-ci/6448/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4585
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-wily-touch/830
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1160
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-wily/479
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1055
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1056
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-amd64-ci/687
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-i386-ci/688
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/3716
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4582
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4582/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24119
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-mako/495
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/830
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/830/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24118

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6448/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

reportingPage = None

still typo here

review: Needs Fixing
2003. By Lukáš Tinkl

fix typo :/

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2003
http://jenkins.qa.ubuntu.com/job/unity8-ci/6455/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4610
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-wily-touch/837
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1167
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-wily/486
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1062
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1063
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-amd64-ci/694
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-i386-ci/695
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/3730
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4607
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4607/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24155
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-mako/500
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/837
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/837/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24154

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6455/rebuild

review: Needs Fixing (continuous-integration)
2004. By Lukáš Tinkl

fix finish_page

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2004
http://jenkins.qa.ubuntu.com/job/unity8-ci/6456/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4614
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-wily-touch/838
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1168
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-wily/487
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1063
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1064
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-amd64-ci/695
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-i386-ci/696
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/3733
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4611
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4611/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24159
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-mako/501
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/838
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/838/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24158

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6456/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

Do we really neeed the "import QtQuick.Window 2.2" in ScreenGrabber? Seems a bit out of place

review: Needs Information
2005. By Lukáš Tinkl

fix obsolete import

Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

> Do we really neeed the "import QtQuick.Window 2.2" in ScreenGrabber? Seems a
> bit out of place

Not needed anymore, removed, thx

Revision history for this message
Albert Astals Cid (aacid) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass? If not, please explain why.
They pass more than it used to

 * Did you make sure that the branch does not contain spurious tags?
Yes

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:2005
http://jenkins.qa.ubuntu.com/job/unity8-ci/6470/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/4638
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-wily-touch/852
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1182
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-wily/501
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1077
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1078
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-amd64-ci/709
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-wily-i386-ci/710
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-mako/3741
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4635
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/4635/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24183
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-wily-mako/504
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/852
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-wily-armhf/852/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/24182

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6470/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/unity8/settings_wizard/__init__.py'
2--- tests/autopilot/unity8/settings_wizard/__init__.py 2015-05-21 16:52:05 +0000
3+++ tests/autopilot/unity8/settings_wizard/__init__.py 2015-10-14 11:39:54 +0000
4@@ -375,12 +375,17 @@
5 wizard = get_wizard(self)
6 next_page = wizard.get_current_page()
7 locationPageEnabled = True
8+ reportingPageEnabled = True
9 if next_page.objectName == 'locationPage':
10 next_page = wizard.get_location_page()
11 else:
12 locationPageEnabled = False
13- next_page = wizard.get_reporting_page()
14- return locationPageEnabled, next_page
15+ if next_page.objectName == 'reportingPage':
16+ next_page = wizard.get_reporting_page()
17+ else:
18+ reportingPageEnabled = False
19+ next_page = wizard.get_finished_page()
20+ return locationPageEnabled, reportingPageEnabled, next_page
21
22 def _get_notification(self, unity):
23 logger.info('Waiting longer for notification object')
24
25=== modified file 'tests/autopilot/unity8/settings_wizard/tests/test_settings_wizard.py'
26--- tests/autopilot/unity8/settings_wizard/tests/test_settings_wizard.py 2015-05-21 16:37:36 +0000
27+++ tests/autopilot/unity8/settings_wizard/tests/test_settings_wizard.py 2015-10-14 11:39:54 +0000
28@@ -80,14 +80,19 @@
29 password_page = next_page
30 wifi_connect_page = self._test_password_page(password_page)
31
32- locationPageEnabled, next_page = self._test_wifi_connect_page(
33- wifi_connect_page)
34+ reporting_page = None
35+ locationPageEnabled, reportingPageEnabled, next_page = self._test_wifi_connect_page(wifi_connect_page)
36 if locationPageEnabled:
37 location_page = next_page
38- reporting_page = self._test_location_page(location_page)
39+ if reportingPageEnabled:
40+ reporting_page = self._test_location_page(location_page)
41+ else:
42+ finish_page = next_page
43+
44+ if reporting_page is not None:
45+ finish_page = self._test_reporting_page(reporting_page)
46 else:
47- reporting_page = next_page
48- finish_page = self._test_reporting_page(reporting_page)
49+ finish_page = next_page
50
51 finish_page.finish()
52 self.assertFalse(

Subscribers

People subscribed via source and target branches