Merge lp:~ralsina/ubuntuone-windows-installer/start_right into lp:ubuntuone-windows-installer

Proposed by Roberto Alsina
Status: Merged
Merged at revision: 68
Proposed branch: lp:~ralsina/ubuntuone-windows-installer/start_right
Merge into: lp:ubuntuone-windows-installer
Diff against target: 35 lines (+12/-2)
2 files modified
ubuntuone_installer/gui/qt/tests/test_gui.py (+11/-1)
ubuntuone_installer/gui/qt/utils/windows.py (+1/-1)
To merge this branch: bzr merge lp:~ralsina/ubuntuone-windows-installer/start_right
Reviewer Review Type Date Requested Status
Natalia Bidart (community) Needs Fixing
Review via email: mp+75601@code.launchpad.net

Commit message

use --with-icon when starting u1cp from the installer

Description of the change

use --with-icon when starting u1cp from the installer

To post a comment you must log in.
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

I've got this test failure:

[FAIL]
Traceback (most recent call last):
  File "/home/nessita/canonical/windows-installer/review_start_right/ubuntuone_installer/gui/qt/tests/test_gui.py", line 458, in test_start_control_panel_on_finishing
    ((['ubuntuone-control-panel-qt', '--with-icon'],), {}))
twisted.trial.unittest.FailTest: not equal:
a = ((['ubuntuone-control-panel-qt'],), {})
b = ((['ubuntuone-control-panel-qt', '--with-icon'],), {})

ubuntuone_installer.gui.qt.tests.test_gui.MainWindowTestCase.test_start_control_panel_on_finishing

review: Needs Fixing
66. By Roberto Alsina

separate linux/windows test

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntuone_installer/gui/qt/tests/test_gui.py'
2--- ubuntuone_installer/gui/qt/tests/test_gui.py 2011-09-15 18:00:28 +0000
3+++ ubuntuone_installer/gui/qt/tests/test_gui.py 2011-09-15 18:49:23 +0000
4@@ -449,7 +449,17 @@
5 """Check if the main properties of the windows are set."""
6 self.assertEqual(self.ui.windowTitle(), APP_NAME)
7
8- def test_start_control_panel_on_finishing(self):
9+ @skipIfOS('linux2', 'Windows-specific tests.')
10+ def test_start_control_panel_on_finishing_windows(self):
11+ """Calling done with result=1, the control panel should be called."""
12+ gui.AreYouSure.result = 1
13+ self.patch(subprocess, "Popen", self._set_called)
14+ self.ui.done(result=1)
15+ self.assertEqual(self._called,
16+ ((['ubuntuone-control-panel-qt', '--with-icon'],), {}))
17+
18+ @skipIfOS('win32', 'Linux-specific tests.')
19+ def test_start_control_panel_on_finishing_linux(self):
20 """Calling done with result=1, the control panel should be called."""
21 gui.AreYouSure.result = 1
22 self.patch(subprocess, "Popen", self._set_called)
23
24=== modified file 'ubuntuone_installer/gui/qt/utils/windows.py'
25--- ubuntuone_installer/gui/qt/utils/windows.py 2011-09-13 01:33:57 +0000
26+++ ubuntuone_installer/gui/qt/utils/windows.py 2011-09-15 18:49:23 +0000
27@@ -57,7 +57,7 @@
28 "ubuntuone-control-panel-qt.exe")
29 else:
30 cp_path = "ubuntuone-control-panel-qt"
31- subprocess.Popen([cp_path, ])
32+ subprocess.Popen([cp_path, "--with-icon"])
33
34
35 def add_syncdaemon_to_autostart():

Subscribers

People subscribed via source and target branches