Merge lp:~elopio/ubuntu-system-settings/my_less_flaky into lp:~ken-vandine/ubuntu-system-settings/less_flaky

Proposed by Leo Arias
Status: Merged
Merged at revision: 1227
Proposed branch: lp:~elopio/ubuntu-system-settings/my_less_flaky
Merge into: lp:~ken-vandine/ubuntu-system-settings/less_flaky
Diff against target: 74 lines (+15/-5)
2 files modified
tests/autopilot/ubuntu_system_settings/__init__.py (+2/-1)
tests/autopilot/ubuntu_system_settings/tests/__init__.py (+13/-4)
To merge this branch: bzr merge lp:~elopio/ubuntu-system-settings/my_less_flaky
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Pending
Review via email: mp+245902@code.launchpad.net

This proposal supersedes a proposal from 2015-01-08.

Commit message

Fixed issues to make ken's branch pass.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/ubuntu_system_settings/__init__.py'
2--- tests/autopilot/ubuntu_system_settings/__init__.py 2014-12-12 19:48:55 +0000
3+++ tests/autopilot/ubuntu_system_settings/__init__.py 2015-01-08 19:51:51 +0000
4@@ -417,7 +417,7 @@
5 @classmethod
6 def validate_dbus_object(cls, path, state):
7 name = introspection.get_classname_from_path(path)
8- if name == b'ItemPage':
9+ if name == b'PageComponent':
10 if state['objectName'][1] == 'aboutPage':
11 return True
12 return False
13@@ -460,6 +460,7 @@
14 def go_to_check_for_updates(self):
15 check_for_updates_button = self.select_single(
16 objectName='updateButton')
17+ check_for_updates_button.swipe_into_view()
18 self.pointing_device.click_object(check_for_updates_button)
19 system_updates_page = self.get_root_instance().wait_select_single(
20 objectName='systemUpdatesPage')
21
22=== modified file 'tests/autopilot/ubuntu_system_settings/tests/__init__.py'
23--- tests/autopilot/ubuntu_system_settings/tests/__init__.py 2014-12-12 19:48:55 +0000
24+++ tests/autopilot/ubuntu_system_settings/tests/__init__.py 2015-01-08 19:51:51 +0000
25@@ -338,9 +338,9 @@
26
27
28 class AboutBaseTestCase(UbuntuSystemSettingsTestCase):
29- def setUp(self, panel=None):
30+ def setUp(self):
31 """Go to About page."""
32- super(AboutBaseTestCase, self).setUp(panel)
33+ super(AboutBaseTestCase, self).setUp()
34 self.about_page = self.main_view.go_to_about_page()
35
36
37@@ -423,7 +423,7 @@
38
39 def setUp(self):
40 """Go to License Page."""
41- super(LicenseBaseTestCase, self).setUp('about')
42+ super(LicenseBaseTestCase, self).setUp()
43 self.licenses_page = self.about_page.go_to_software_licenses()
44
45
46@@ -523,11 +523,14 @@
47 @classmethod
48 def setUpClass(klass):
49 klass.start_system_bus()
50- klass.start_session_bus()
51 klass.dbus_con = klass.get_dbus(True)
52 klass.dbus_con_session = klass.get_dbus(False)
53
54 def setUp(self, panel='sound'):
55+ # TODO only do this if the sound indicator is running.
56+ # --elopio - 2015-01-08
57+ self.stop_sound_indicator()
58+ self.addCleanup(self.start_sound_indicator)
59
60 user_obj = '/user/foo'
61
62@@ -671,6 +674,12 @@
63 self.mock_isound.wait()
64 super(SoundBaseTestCase, self).tearDown()
65
66+ def start_sound_indicator(self):
67+ subprocess.call(['initctl', 'start', 'indicator-sound'])
68+
69+ def stop_sound_indicator(self):
70+ subprocess.call(['initctl', 'stop', 'indicator-sound'])
71+
72
73 class ResetBaseTestCase(UbuntuSystemSettingsTestCase,
74 dbusmock.DBusTestCase):

Subscribers

People subscribed via source and target branches

to all changes: