Merge lp:~alecu/ubuntu-sso-client/daemonize-networkstate-thread into lp:ubuntu-sso-client

Proposed by Alejandro J. Cura
Status: Merged
Approved by: dobey
Approved revision: 936
Merged at revision: 936
Proposed branch: lp:~alecu/ubuntu-sso-client/daemonize-networkstate-thread
Merge into: lp:ubuntu-sso-client
Diff against target: 81 lines (+6/-9)
2 files modified
ubuntu_sso/networkstate/tests/test_windows.py (+4/-7)
ubuntu_sso/networkstate/windows.py (+2/-2)
To merge this branch: bzr merge lp:~alecu/ubuntu-sso-client/daemonize-networkstate-thread
Reviewer Review Type Date Requested Status
Diego Sarmentero (community) Approve
Natalia Bidart (community) Approve
Review via email: mp+99461@code.launchpad.net

Commit message

- Daemonize the network state thread under windows (LP: #963404).

Description of the change

- Daemonize the network state thread under windows (LP: #963404).

To post a comment you must log in.
Revision history for this message
Alejandro J. Cura (alecu) wrote :

To review this branch: start a syncdaemon instance having this branch in PYTHONPATH, then make sure that the process exits when asking it to quit (for example, using u1sdtool -q).

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Looks good! And is pretty trivial.

review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (69.2 KiB)

The attempt to merge lp:~alecu/ubuntu-sso-client/daemonize-networkstate-thread into lp:ubuntu-sso-client failed. Below is the output from the failed tests.

*** Running GTK test suite for ubuntu_sso ***
ubuntu_sso.xdg_base_directory.tests.test_common
  TestBaseDirectory
    test_load_config_paths_filter ... [OK]
    test_save_config_path ... [OK]
    test_xdg_cache_home_is_utf8_bytes ... [OK]
    test_xdg_config_dirs_are_bytes ... [OK]
    test_xdg_config_home_is_utf8_bytes ... [OK]
    test_xdg_data_dirs_are_bytes ... [OK]
    test_xdg_data_home_is_utf8_bytes ... [OK]
    test_xdg_home_is_utf8_bytes ... [OK]
twisted.trial.unittest
  TestCase
    runTest ... [OK]
ubuntu_sso.gtk.tests.test_main
  BasicTestCase
    test_main ... [OK]
twisted.trial.unittest
  TestCase
    runTest ... [OK]
ubuntu_sso.gtk.tests.test_gui
  BasicTestCase
    runTest ... [OK]
  BasicUbuntuSSOClientTestCase
    test_app_name_is_stored ... [OK]
    test_cancel_buttons_close_window ... [OK]
    test_close_callback_if_not_set ... [OK]
    test_closing_main_window_calls_close_callback ... [OK]
    test_entries_activates_default ... [OK]
    test_finish_error_shows_error_page ... [OK]
    test_finish_success_shows_success_page ... [OK]
    test_initial_text_for_entries ... [OK]
    test_main_window_is_resizable ... [OK]
    test_main_window_is_visible_at_startup ... [OK]
    test_pages_are_packed_into_container ... [OK]
    test_password_fields_are_password ... [OK]
    test_signals_are_removed ... [OK]
    test_warning_fields_are_cleared ... [OK]
    test_window_icon ... [OK]
  DefaultButtonsTestCase
    test_default_widget_can_default ... [OK]
    test_pages_have_default_widget_set ... [OK]
    test_set_current_page_grabs_focus_for_default_button ... [OK]
  EnterDetailsTestCase
    test_captcha_filename_is_different_each_time ... [OK]
    test_captcha_id_is_stored_when_captcha_is_available ... [OK]
    test_captcha_image_is_a_spinner_at_first ... [OK]
    test_captcha_image_is_not_visible_at_startup ...

Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (148.9 KiB)

The attempt to merge lp:~alecu/ubuntu-sso-client/daemonize-networkstate-thread into lp:ubuntu-sso-client failed. Below is the output from the failed tests.

*** Running GTK test suite for ubuntu_sso ***
ubuntu_sso.xdg_base_directory.tests.test_common
  TestBaseDirectory
    test_load_config_paths_filter ... [OK]
    test_save_config_path ... [OK]
    test_xdg_cache_home_is_utf8_bytes ... [OK]
    test_xdg_config_dirs_are_bytes ... [OK]
    test_xdg_config_home_is_utf8_bytes ... [OK]
    test_xdg_data_dirs_are_bytes ... [OK]
    test_xdg_data_home_is_utf8_bytes ... [OK]
    test_xdg_home_is_utf8_bytes ... [OK]
twisted.trial.unittest
  TestCase
    runTest ... [OK]
ubuntu_sso.gtk.tests.test_main
  BasicTestCase
    test_main ... [OK]
twisted.trial.unittest
  TestCase
    runTest ... [OK]
ubuntu_sso.gtk.tests.test_gui
  BasicTestCase
    runTest ... [OK]
  BasicUbuntuSSOClientTestCase
    test_app_name_is_stored ... [OK]
    test_cancel_buttons_close_window ... [OK]
    test_close_callback_if_not_set ... [OK]
    test_closing_main_window_calls_close_callback ... [OK]
    test_entries_activates_default ... [OK]
    test_finish_error_shows_error_page ... [OK]
    test_finish_success_shows_success_page ... [OK]
    test_initial_text_for_entries ... [OK]
    test_main_window_is_resizable ... [OK]
    test_main_window_is_visible_at_startup ... [OK]
    test_pages_are_packed_into_container ... [OK]
    test_password_fields_are_password ... [OK]
    test_signals_are_removed ... [OK]
    test_warning_fields_are_cleared ... [OK]
    test_window_icon ... [OK]
  DefaultButtonsTestCase
    test_default_widget_can_default ... [OK]
    test_pages_have_default_widget_set ... [OK]
    test_set_current_page_grabs_focus_for_default_button ... [OK]
  EnterDetailsTestCase
    test_captcha_filename_is_different_each_time ... [OK]
    test_captcha_id_is_stored_when_captcha_is_available ... [OK]
    test_captcha_image_is_a_spinner_at_first ... [OK]
    test_captcha_image_is_not_visible_at_startup ...

Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu_sso/networkstate/tests/test_windows.py'
2--- ubuntu_sso/networkstate/tests/test_windows.py 2011-11-11 19:20:59 +0000
3+++ ubuntu_sso/networkstate/tests/test_windows.py 2012-03-27 03:05:20 +0000
4@@ -1,8 +1,6 @@
5 # -*- coding: utf-8 -*-
6 #
7-# Author: Manuel de la Pena<manuel@canonical.com>
8-#
9-# Copyright 2011 Canonical Ltd.
10+# Copyright 2011-2012 Canonical Ltd.
11 #
12 # This program is free software: you can redistribute it and/or modify it
13 # under the terms of the GNU General Public License version 3, as published
14@@ -80,7 +78,7 @@
15
16
17 class TestNetworkManagerState(MockerTestCase):
18- """Test he Network Manager State."""
19+ """Test the Network Manager State."""
20
21 def setUp(self):
22 super(TestNetworkManagerState, self).setUp()
23@@ -109,6 +107,7 @@
24 self.mocker.result(False)
25 self.cb(OFFLINE)
26 self.mocker.result(self.thread)
27+ self.thread.daemon = True
28 self.thread.start()
29 self.mocker.replay()
30 self.state.find_online_state(listener=self.network_manager,
31@@ -120,6 +119,7 @@
32 self.mocker.result(ONLINE)
33 self.cb(ONLINE)
34 self.mocker.result(self.thread)
35+ self.thread.daemon = True
36 self.thread.start()
37 self.mocker.replay()
38 self.state.find_online_state(listener=self.network_manager,
39@@ -127,7 +127,6 @@
40
41
42 class FakeWininet(object):
43-
44 """Fake wininet for windll."""
45
46 connection_state = -1
47@@ -140,7 +139,6 @@
48
49
50 class FakeWininetException(object):
51-
52 """Fake wininet for windll."""
53
54 connection_state = -1
55@@ -153,7 +151,6 @@
56
57
58 class TestConnection(TestCase):
59-
60 """Test the state of the connection."""
61
62 @inlineCallbacks
63
64=== modified file 'ubuntu_sso/networkstate/windows.py'
65--- ubuntu_sso/networkstate/windows.py 2012-01-04 16:49:43 +0000
66+++ ubuntu_sso/networkstate/windows.py 2012-03-27 03:05:20 +0000
67@@ -1,7 +1,6 @@
68 # -*- coding: utf-8 -*-
69-# Author: Manuel de la Pena <manuel@canonical.com>
70 #
71-# Copyright 2011 Canonical Ltd.
72+# Copyright 2011-2012 Canonical Ltd.
73 #
74 # This program is free software: you can redistribute it and/or modify it
75 # under the terms of the GNU General Public License version 3, as published
76@@ -207,4 +206,5 @@
77 if listener_thread is None:
78 listener_thread = Thread(target=listener.register,
79 name='Ubuntu SSO NetworkManager')
80+ listener_thread.daemon = True
81 listener_thread.start()

Subscribers

People subscribed via source and target branches