multiple tests failed

Bug #1448506 reported by themusicgod1
2
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
New
Undecided
Unassigned

Bug Description

the following tests consistently fail when run via run-tests.sh:

Testing test_unity_launcher_integration_gui... [ FAIL ]
Testing test_reviews... [ FAIL ]
Testing test_buttons... [ FAIL ]
Testing test_zeitgeist_logger_gui... [ FAIL ]

Testing test_webkit...

doesn't seem to finish: I left it running overnight and didn't finish (that may or may not be a bug).

software-center:
  Installed: 13.10-0ubuntu6
  Candidate: 13.10-0ubuntu6

Ubuntu: vivid 15.04

themusicgod1@Hedy:~/software-center/software-center-13.10/tests/output$ ls *.FAIL
test_buttons.out.FAIL test_unity_launcher_integration_gui.out.FAIL
test_reviews.out.FAIL test_zeitgeist_logger_gui.out.FAIL

themusicgod1@Hedy:~/software-center/software-center-13.10/tests/output$ cat *.FAIL
test_feature_tile_dup_symbol (tests.gtk3.test_buttons.TestWidgets) ... FAIL
test_free_price (tests.gtk3.test_buttons.TestWidgets) ... FAIL

======================================================================
FAIL: test_feature_tile_dup_symbol (tests.gtk3.test_buttons.TestWidgets)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gtk3/test_buttons.py", line 21, in test_feature_tile_dup_symbol
    button.price.get_label(), '<span font_desc="10">US$ 1.00</span>')
AssertionError: '<span font_desc="13">US$ 1.00</span>' != '<span font_desc="10">US$ 1.00</span>'

======================================================================
FAIL: test_free_price (tests.gtk3.test_buttons.TestWidgets)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gtk3/test_buttons.py", line 29, in test_free_price
    button.price.get_label(), '<span font_desc="10">Free</span>')
AssertionError: '<span font_desc="13">Free</span>' != '<span font_desc="10">Free</span>'

----------------------------------------------------------------------
Ran 2 tests in 0.029s

FAILED (failures=2)
test_delete_review (tests.gtk3.test_reviews.TestGRatingsAndReviews) ... ok
test_flag_review (tests.gtk3.test_reviews.TestGRatingsAndReviews) ... ok
test_modify_review (tests.gtk3.test_reviews.TestGRatingsAndReviews) ... ok
test_submit_review (tests.gtk3.test_reviews.TestGRatingsAndReviews) ... ok
test_submit_usefulness (tests.gtk3.test_reviews.TestGRatingsAndReviews) ... ok
test_change_status (tests.gtk3.test_reviews.TestReviewLoader) ... ERROR

Stderr:
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkAlignment:xscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkAlignment:yscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkMisc:xpad is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkAlignment:bottom-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkAlignment:left-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkButton:xalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
test_edit_review_screen_has_right_labels (tests.gtk3.test_reviews.TestReviewLoader)
Check that LP #880255 stays fixed. ... ERROR
test_get_fade_colour_markup (tests.gtk3.test_reviews.TestReviewLoader) ... ERROR
test_modify_review_is_the_same_supports_unicode (tests.gtk3.test_reviews.TestReviewLoader) ... ERROR

======================================================================
ERROR: test_change_status (tests.gtk3.test_reviews.TestReviewLoader)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gtk3/test_reviews.py", line 112, in test_change_status
    version=None, action='nothing')
  File "softwarecenter/ui/gtk3/review_gui_helper.py", line 595, in __init__
    BaseApp.__init__(self, datadir, "submit_review.ui")
  File "softwarecenter/ui/gtk3/review_gui_helper.py", line 382, in __init__
    self, os.path.join(datadir, "ui/gtk3", uifile), "software-center")
  File "softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py", line 32, in __init__
    self.builder.add_from_file(path)
Error: gtk-builder-error-quark: Invalid property: GtkGrid.n_rows on line 409 (11)

Stderr:
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkAlignment:xscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkAlignment:yscale is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkMisc:xpad is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkAlignment:bottom-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkAlignment:left-padding is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkImage:stock is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)
softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py:32: Warning: The property GtkButton:xalign is deprecated and shouldn't be used anymore. It will be removed in a future version.
  self.builder.add_from_file(path)

======================================================================
ERROR: test_edit_review_screen_has_right_labels (tests.gtk3.test_reviews.TestReviewLoader)
Check that LP #880255 stays fixed.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gtk3/test_reviews.py", line 56, in test_edit_review_screen_has_right_labels
    version=None, action='modify', review_id=10000)
  File "softwarecenter/ui/gtk3/review_gui_helper.py", line 595, in __init__
    BaseApp.__init__(self, datadir, "submit_review.ui")
  File "softwarecenter/ui/gtk3/review_gui_helper.py", line 382, in __init__
    self, os.path.join(datadir, "ui/gtk3", uifile), "software-center")
  File "softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py", line 32, in __init__
    self.builder.add_from_file(path)
Error: gtk-builder-error-quark: Invalid property: GtkGrid.n_rows on line 409 (11)

======================================================================
ERROR: test_get_fade_colour_markup (tests.gtk3.test_reviews.TestReviewLoader)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gtk3/test_reviews.py", line 78, in test_get_fade_colour_markup
    version=None, action='nothing')
  File "softwarecenter/ui/gtk3/review_gui_helper.py", line 595, in __init__
    BaseApp.__init__(self, datadir, "submit_review.ui")
  File "softwarecenter/ui/gtk3/review_gui_helper.py", line 382, in __init__
    self, os.path.join(datadir, "ui/gtk3", uifile), "software-center")
  File "softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py", line 32, in __init__
    self.builder.add_from_file(path)
Error: gtk-builder-error-quark: Invalid property: GtkGrid.n_rows on line 409 (11)

======================================================================
ERROR: test_modify_review_is_the_same_supports_unicode (tests.gtk3.test_reviews.TestReviewLoader)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gtk3/test_reviews.py", line 94, in test_modify_review_is_the_same_supports_unicode
    version=None, action='modify', review_id=10000)
  File "softwarecenter/ui/gtk3/review_gui_helper.py", line 595, in __init__
    BaseApp.__init__(self, datadir, "submit_review.ui")
  File "softwarecenter/ui/gtk3/review_gui_helper.py", line 382, in __init__
    self, os.path.join(datadir, "ui/gtk3", uifile), "software-center")
  File "softwarecenter/ui/gtk3/SimpleGtkbuilderApp.py", line 32, in __init__
    self.builder.add_from_file(path)
Error: gtk-builder-error-quark: Invalid property: GtkGrid.n_rows on line 409 (11)

----------------------------------------------------------------------
Ran 9 tests in 1.254s

FAILED (errors=4)
2015-04-25 12:40:15,420 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2015-04-25 12:40:15,967 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
No bp log location saved, using default.
[000:000] Cpu: 6.58.9, x4, 3200Mhz, 7866MB
[000:000] Computer model: Not available
No bp log location saved, using default.
[000:000] Cpu: 6.58.9, x4, 3200Mhz, 7866MB
[000:000] Computer model: Not available
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
[000:003] Using Gtk2 toolkit
[000:012] Warning(optionsfile.cc:30): Load: Could not open file, err=2
[000:012] No bp log location saved, using default.
[000:013] Cpu: 6.58.9, x4, 3200Mhz, 7866MB
[000:013] Computer model: Not available
[000:004] Warning(optionsfile.cc:30): Load: Could not open file, err=2
[000:004] No bp log location saved, using default.
[000:005] Cpu: 6.58.9, x4, 3200Mhz, 7866MB
[000:005] Computer model: Not available
[000:005] Browser XEmbed support present: 1
[000:005] Browser toolkit is Gtk2.
[000:005] Using Gtk2 toolkit
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
test_unity_launcher_integration_cancelled_install (tests.gtk3.test_unity_launcher_integration_gui.TestUnityLauncherIntegrationGUI) ... ok
test_unity_launcher_integration_details_view (tests.gtk3.test_unity_launcher_integration_gui.TestUnityLauncherIntegrationGUI) ... ok
test_unity_launcher_integration_disabled (tests.gtk3.test_unity_launcher_integration_gui.TestUnityLauncherIntegrationGUI) ... ok
test_unity_launcher_integration_installation_failure (tests.gtk3.test_unity_launcher_integration_gui.TestUnityLauncherIntegrationGUI) ... ok
test_unity_launcher_integration_launcher (tests.gtk3.test_unity_launcher_integration_gui.TestUnityLauncherIntegrationGUI) ... 2015-04-25 12:40:24,332 - softwarecenter.utils - WARNING - Could not determine the installed desktop file path for app-install desktop file: ''
FAIL

Stderr:
softwarecenter/ui/gtk3/widgets/thumbnail.py:48: Warning: Source ID 4102 was not found when attempting to remove it
  GLib.source_remove(self._sig)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:560: Warning: Source ID 260 was not found when attempting to remove it
  return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:560: Warning: Source ID 258 was not found when attempting to remove it
  return super(MainContext, self).iteration(may_block)
test_unity_launcher_integration_list_view (tests.gtk3.test_unity_launcher_integration_gui.TestUnityLauncherIntegrationGUI) ... ok

======================================================================
FAIL: test_unity_launcher_integration_launcher (tests.gtk3.test_unity_launcher_integration_gui.TestUnityLauncherIntegrationGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
    return func(*args, **keywargs)
  File "tests/gtk3/test_unity_launcher_integration_gui.py", line 181, in test_unity_launcher_integration_launcher
    mock_send_application_to_launcher.called))
AssertionError: expected False for pkg: wine1.4 but got: True

Stderr:
softwarecenter/ui/gtk3/widgets/thumbnail.py:48: Warning: Source ID 4102 was not found when attempting to remove it
  GLib.source_remove(self._sig)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:560: Warning: Source ID 260 was not found when attempting to remove it
  return super(MainContext, self).iteration(may_block)
/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:560: Warning: Source ID 258 was not found when attempting to remove it
  return super(MainContext, self).iteration(may_block)

----------------------------------------------------------------------
Ran 6 tests in 10.836s

FAILED (failures=1)
2015-04-25 12:41:22,966 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
2015-04-25 12:41:23,483 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()
No bp log location saved, using default.
[000:000] Cpu: 6.58.9, x4, 3200Mhz, 7866MB
[000:000] Computer model: Not available
No bp log location saved, using default.
[000:000] Cpu: 6.58.9, x4, 3200Mhz, 7866MB
[000:000] Computer model: Not available
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
[000:002] Using Gtk2 toolkit
[000:012] Warning(optionsfile.cc:30): Load: Could not open file, err=2
[000:012] No bp log location saved, using default.
[000:012] Cpu: 6.58.9, x4, 3200Mhz, 7866MB
[000:013] Computer model: Not available
[000:004] Warning(optionsfile.cc:30): Load: Could not open file, err=2
[000:004] No bp log location saved, using default.
[000:004] Cpu: 6.58.9, x4, 3200Mhz, 7866MB
[000:005] Computer model: Not available
[000:005] Browser XEmbed support present: 1
[000:005] Browser toolkit is Gtk2.
[000:005] Using Gtk2 toolkit
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
test_zeitgeist_logger_cancel_on_cancel (tests.gtk3.test_zeitgeist_logger_gui.TestZeitgeistLoggerGUI) ... ok
test_zeitgeist_logger_cancel_on_stop (tests.gtk3.test_zeitgeist_logger_gui.TestZeitgeistLoggerGUI) ... ok
test_zeitgeist_logger_init_on_start (tests.gtk3.test_zeitgeist_logger_gui.TestZeitgeistLoggerGUI) ... ok
test_zeitgeist_logger_logs_install_on_finished (tests.gtk3.test_zeitgeist_logger_gui.TestZeitgeistLoggerGUI) ... ERROR
test_zeitgeist_logger_logs_uninstall_on_finished (tests.gtk3.test_zeitgeist_logger_gui.TestZeitgeistLoggerGUI) ... ERROR

======================================================================
ERROR: test_zeitgeist_logger_logs_install_on_finished (tests.gtk3.test_zeitgeist_logger_gui.TestZeitgeistLoggerGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gtk3/test_zeitgeist_logger_gui.py", line 80, in test_zeitgeist_logger_logs_install_on_finished
    self.assertEqual(args, transaction.real_desktop_file)
AttributeError: 'TransactionDetails' object has no attribute 'real_desktop_file'

======================================================================
ERROR: test_zeitgeist_logger_logs_uninstall_on_finished (tests.gtk3.test_zeitgeist_logger_gui.TestZeitgeistLoggerGUI)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/gtk3/test_zeitgeist_logger_gui.py", line 92, in test_zeitgeist_logger_logs_uninstall_on_finished
    self.assertEqual(args, transaction.real_desktop_file)
AttributeError: 'TransactionDetails' object has no attribute 'real_desktop_file'

----------------------------------------------------------------------
Ran 5 tests in 2.059s

FAILED (errors=2)

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: software-center 13.10-0ubuntu6
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Apr 25 13:13:51 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-07-09 (289 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Alpha amd64 (20140708)
PackageArchitecture: all
SourcePackage: software-center
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
themusicgod1 (themusicgod1) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.