Merge lp:~boiko/dialer-app/fix_autopilot_tests into lp:dialer-app

Proposed by Gustavo Pichorim Boiko
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 115
Merged at revision: 114
Proposed branch: lp:~boiko/dialer-app/fix_autopilot_tests
Merge into: lp:dialer-app
Diff against target: 25 lines (+8/-0)
1 file modified
tests/autopilot/dialer_app/tests/test_calls.py (+8/-0)
To merge this branch: bzr merge lp:~boiko/dialer-app/fix_autopilot_tests
Reviewer Review Type Date Requested Status
Leo Arias (community) ran the tests on mako, image 256 Approve
PS Jenkins bot continuous-integration Approve
Ubuntu Phablet Team Pending
Review via email: mp+212527@code.launchpad.net

Commit message

Make sure the telepathy-ofono account is using the correct modem before running the tests.

Description of the change

Make sure the telepathy-ofono account is using the correct modem before running the tests.

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

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/dialer-app) on device or emulator?
Yes

If you changed the UI, was the change specified/approved by design?
N/A

If you changed the packaging (debian), did you subscribe a core-dev to this MP?
N/A

To post a comment you must log in.
115. By Gustavo Pichorim Boiko

Fix the comment.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

Ran 9 tests in 112.379s
OK

review: Approve (ran the tests on mako, image 256)
Revision history for this message
Leo Arias (elopio) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?

Yes. This branch changes nothing on the functionality. The autopilot tests leave the phone in a bad state that doesn't let you make or receive more calls, but after removing ofono-phonesim, rebooting and reconnecting to the ofono account, the dialer app works fine for me.

Did CI run pass? If not, please explain why.

Yes.

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?

Yes.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/dialer_app/tests/test_calls.py'
2--- tests/autopilot/dialer_app/tests/test_calls.py 2014-02-27 01:20:02 +0000
3+++ tests/autopilot/dialer_app/tests/test_calls.py 2014-03-24 23:46:01 +0000
4@@ -39,6 +39,10 @@
5 subprocess.call(["pkill", "history-daemon"])
6 os.rename(self.history, self.history + ".orig")
7
8+ # make sure the modem is running on phonesim
9+ subprocess.call(['mc-tool', 'update', 'ofono/ofono/account0', 'string:modem-objpath=/phonesim'])
10+ subprocess.call(['mc-tool', 'reconnect', 'ofono/ofono/account0'])
11+
12 super(TestCalls, self).setUp()
13
14 # should have an empty history at the beginning of each test
15@@ -57,6 +61,10 @@
16 subprocess.call(["pkill", "history-daemon"])
17 os.rename(self.history + ".orig", self.history)
18
19+ # set the modem objpath in telepathy-ofono to the real modem
20+ subprocess.call(['mc-tool', 'update', 'ofono/ofono/account0', 'string:modem-objpath=/ril_0'])
21+ subprocess.call(['mc-tool', 'reconnect', 'ofono/ofono/account0'])
22+
23 def test_outgoing_noanswer(self):
24 """Outgoing call to a normal number, no answer"""
25 number = "144"

Subscribers

People subscribed via source and target branches