Merge lp:~thomir-deactivatedaccount/autopilot/1.3-fix-warning into lp:autopilot

Proposed by Thomi Richards
Status: Superseded
Proposed branch: lp:~thomir-deactivatedaccount/autopilot/1.3-fix-warning
Merge into: lp:autopilot
Diff against target: 99 lines (+54/-2) (has conflicts)
3 files modified
autopilot/introspection/__init__.py (+5/-1)
autopilot/tests/unit/test_proxy_objects.py (+10/-1)
debian/changelog (+39/-0)
Text conflict in debian/changelog
To merge this branch: bzr merge lp:~thomir-deactivatedaccount/autopilot/1.3-fix-warning
Reviewer Review Type Date Requested Status
Autopilot Hackers Pending
Review via email: mp+186638@code.launchpad.net

Commit message

Remove a spurious log message.

Description of the change

Remove a log message when we try and get the process Id for the dbus daemon itself.

To post a comment you must log in.
336. By Thomi Richards

Move test to a functional test case, so dbus is available.

337. By Thomi Richards

remove old test.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'autopilot/introspection/__init__.py'
2--- autopilot/introspection/__init__.py 2013-09-18 17:17:08 +0000
3+++ autopilot/introspection/__init__.py 2013-09-19 19:53:38 +0000
4@@ -404,7 +404,11 @@
5
6 def _connection_matches_pid(bus, connection_name, pid):
7 """Given a PID checks wherever it or its children are connected on this
8- bus."""
9+ bus.
10+
11+ """
12+ if connection_name == 'org.freedesktop.DBus':
13+ return False
14 try:
15 if _bus_pid_is_our_pid(bus, connection_name, pid):
16 return False
17
18=== modified file 'autopilot/tests/unit/test_proxy_objects.py'
19--- autopilot/tests/unit/test_proxy_objects.py 2013-07-24 04:45:13 +0000
20+++ autopilot/tests/unit/test_proxy_objects.py 2013-09-19 19:53:38 +0000
21@@ -17,7 +17,7 @@
22 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #
24
25-from dbus import DBusException
26+from dbus import DBusException, SessionBus
27 from testtools import TestCase
28 from testtools.matchers import Equals
29 from mock import patch, Mock
30@@ -204,6 +204,15 @@
31 self.fake_bus, self.fake_connection_name, test_pid)
32 self.assertThat(result, Equals(False))
33
34+ @patch('autopilot.introspection._connection_matches_pid')
35+ @patch('autopilot.introspection._bus_pid_is_our_pid')
36+ def test_connection_matches_pid_ignores_dbus_daemon(
37+ self, bus_pid_is_our_pid, conn_matches_pid_fn):
38+ _connection_matches_pid(SessionBus(), 'org.freedesktop.DBus', 123)
39+
40+ self.assertThat(bus_pid_is_our_pid.called, Equals(False))
41+ self.assertThat(conn_matches_pid_fn.called, Equals(False))
42+
43 @patch('autopilot.introspection._bus_pid_is_our_pid')
44 def test_match_connection_fails_bus_pid_is_our_pid(self, bus_pid_fn):
45 test_pid = 0
46
47=== modified file 'debian/changelog'
48--- debian/changelog 2013-09-17 04:24:51 +0000
49+++ debian/changelog 2013-09-19 19:53:38 +0000
50@@ -1,3 +1,4 @@
51+<<<<<<< TREE
52 autopilot (1.4+14.04.20130917ubuntu.unity.next-0ubuntu1) saucy; urgency=low
53
54 [ Thomi Richards ]
55@@ -19,6 +20,44 @@
56
57 -- Thomi Richards <thomi.richards@canonical.com> Fri, 16 Aug 2013 08:47:12 +1200
58
59+=======
60+autopilot (1.3.1+13.10.20130918-0ubuntu1) saucy; urgency=low
61+
62+ [ Jean-Baptiste Lallement ]
63+ * Added autopilot-sandbox-run to run autopilot tests in a 'fake' X
64+ server. Xephyr and Xvfb are supported. (LP: #1226070)
65+
66+ [ Thomi Richards ]
67+ * kzgdiparg ugp srgp s r ua. (LP: #1205204)
68+ * Add support for click packages. (LP: #1212833)
69+ * Update StateNotFoundErrror exception to give more informative
70+ messages. (LP: #1225701)
71+ * Fix select_single inconsistency. (LP: #1225692)
72+ * Create wait_select_single method. (LP: #1223428)
73+ * Add test case for applications that exit with SIGABRT when launched
74+ with autopilot.
75+ * Back out changes that would break test case compatibility. (LP:
76+ #1226505)
77+ * Performance improvments for launching and closing applications under
78+ test with autopilot. (LP: #1218636)
79+
80+ [ Andy Doan ]
81+ * Add support for click packages. (LP: #1212833)
82+
83+ [ Christopher Lee ]
84+ * commit message. (LP: #1205949)
85+
86+ [ Martin Pitt ]
87+ * Add bamfdaemon to autopilot-desktop dependencies, to avoid long
88+ delays when running autopilot in minimal environments. (LP:
89+ #1224970)
90+
91+ [ Ubuntu daily release ]
92+ * Automatic snapshot from revision 333
93+
94+ -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Wed, 18 Sep 2013 06:03:34 +0000
95+
96+>>>>>>> MERGE-SOURCE
97 autopilot (1.3.1+13.10.20130906.1-0ubuntu1) saucy; urgency=low
98
99 [ Christopher Lee ]

Subscribers

People subscribed via source and target branches