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
=== modified file 'ubuntuone_installer/gui/qt/tests/test_gui.py'
--- ubuntuone_installer/gui/qt/tests/test_gui.py 2011-09-15 18:00:28 +0000
+++ ubuntuone_installer/gui/qt/tests/test_gui.py 2011-09-15 18:49:23 +0000
@@ -449,7 +449,17 @@
449 """Check if the main properties of the windows are set."""449 """Check if the main properties of the windows are set."""
450 self.assertEqual(self.ui.windowTitle(), APP_NAME)450 self.assertEqual(self.ui.windowTitle(), APP_NAME)
451451
452 def test_start_control_panel_on_finishing(self):452 @skipIfOS('linux2', 'Windows-specific tests.')
453 def test_start_control_panel_on_finishing_windows(self):
454 """Calling done with result=1, the control panel should be called."""
455 gui.AreYouSure.result = 1
456 self.patch(subprocess, "Popen", self._set_called)
457 self.ui.done(result=1)
458 self.assertEqual(self._called,
459 ((['ubuntuone-control-panel-qt', '--with-icon'],), {}))
460
461 @skipIfOS('win32', 'Linux-specific tests.')
462 def test_start_control_panel_on_finishing_linux(self):
453 """Calling done with result=1, the control panel should be called."""463 """Calling done with result=1, the control panel should be called."""
454 gui.AreYouSure.result = 1464 gui.AreYouSure.result = 1
455 self.patch(subprocess, "Popen", self._set_called)465 self.patch(subprocess, "Popen", self._set_called)
456466
=== modified file 'ubuntuone_installer/gui/qt/utils/windows.py'
--- ubuntuone_installer/gui/qt/utils/windows.py 2011-09-13 01:33:57 +0000
+++ ubuntuone_installer/gui/qt/utils/windows.py 2011-09-15 18:49:23 +0000
@@ -57,7 +57,7 @@
57 "ubuntuone-control-panel-qt.exe")57 "ubuntuone-control-panel-qt.exe")
58 else:58 else:
59 cp_path = "ubuntuone-control-panel-qt"59 cp_path = "ubuntuone-control-panel-qt"
60 subprocess.Popen([cp_path, ])60 subprocess.Popen([cp_path, "--with-icon"])
6161
6262
63def add_syncdaemon_to_autostart():63def add_syncdaemon_to_autostart():

Subscribers

People subscribed via source and target branches