Merge lp:~nskaggs/ubuntu-clock-app/fix-1220998 into lp:ubuntu-clock-app/saucy

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 184
Merged at revision: 184
Proposed branch: lp:~nskaggs/ubuntu-clock-app/fix-1220998
Merge into: lp:ubuntu-clock-app/saucy
Diff against target: 30 lines (+10/-0)
1 file modified
tests/autopilot/ubuntu_clock_app/tests/__init__.py (+10/-0)
To merge this branch: bzr merge lp:~nskaggs/ubuntu-clock-app/fix-1220998
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Ubuntu Clock Developers Pending
Review via email: mp+184218@code.launchpad.net

Commit message

Fix for OSK blocking UI elements during tests

Description of the change

Fix for OSK blocking UI elements during tests

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
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/ubuntu_clock_app/tests/__init__.py'
2--- tests/autopilot/ubuntu_clock_app/tests/__init__.py 2013-09-05 01:58:21 +0000
3+++ tests/autopilot/ubuntu_clock_app/tests/__init__.py 2013-09-06 01:45:20 +0000
4@@ -51,9 +51,17 @@
5 def setUp(self):
6 self.pointing_device = Pointer(self.input_device_class.create())
7 super(ClockAppTestCase, self).setUp()
8+
9+ #backup and wipe db's before testing
10 self.temp_move_sqlite_db()
11 self.addCleanup(self.restore_sqlite_db)
12
13+ #turn off the OSK so it doesn't block screen elements
14+ if model() != 'Desktop':
15+ os.system("stop maliit-server")
16+ #adding cleanup step seems to restart service immeadiately; disabling for now
17+ #self.addCleanup(os.system("start maliit-server"))
18+
19 if os.path.exists(self.local_location):
20 self.launch_test_local()
21 else:
22@@ -76,6 +84,8 @@
23 emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
24
25 def temp_move_sqlite_db(self):
26+ if os.path.exists(self.backup_dir):
27+ shutil.rmtree(self.backup_dir)
28 if os.path.exists(self.sqlite_dir):
29 shutil.move(self.sqlite_dir, self.backup_dir)
30 self.assertThat(

Subscribers

People subscribed via source and target branches