Comment 2 for bug 1320175

Revision history for this message
Martin Pitt (pitti) wrote :

After fixing both of the above issues (in attached branch), I'm now getting a "real" failure in one of the tests:

======================================================================
FAIL: online_accounts_ui.tests.test_online_accounts_ui.OnlineAccountsUiTests.test_title(with mouse)
----------------------------------------------------------------------
Empty attachments:
  process-stdout

/var/log/syslog: {{{
May 16 10:49:26 autopkgtest dbus[339]: [system] Activating service name='org.freedesktop.NetworkManager' (using servicehelper)
May 16 10:49:26 autopkgtest dbus[339]: [system] Activated service 'org.freedesktop.NetworkManager' failed: Launch helper exited with unknown return code 1
}}}

process-return-code: {{{-15}}}
process-stderr: {{{
Testability driver loaded. Wire protocol version is "1.4".
virtual void OnlineAccounts::Plugin::registerTypes(const char*) Ubuntu.OnlineAccounts
unity::action::ActionManager::ActionManager(QObject*):
 Could not determine application identifier. HUD will not work properly.
 Provide your application identifier in $APP_ID environment variable.
qrc:/qml/AccountsPage.qml:33:9: QML ListView: Binding loop detected for property "height"
account-service-model.cpp 291 update
account-service-model.cpp 291 update
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/ListItems/IconVisual.qml:41:5: QML ImageWithFallback: Failed to get image from provider: image://theme/fake-oauth
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/ListItems/IconVisual.qml:41:5: QML ImageWithFallback: Failed to get image from provider: image://theme/fake-oauth
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/ListItems/IconVisual.qml:41:5: QML ImageWithFallback: Failed to get image from provider: image://theme/test-login
}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/online_accounts_ui/tests/test_online_accounts_ui.py", line 80, in test_title
    self.assertThat(header.title, Eventually(Equals('Online Accounts')))
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
    raise mismatch_error
MismatchError: After 10.0 seconds test on Header.title failed: u'Online Accounts' != dbus.String(u'Accounts', variant_level=1)

Ran 3 tests in 31.562s
FAILED (failures=1)
adt-run: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ tests done.

Indeed ./src/qml/MainPage.qml has title: i18n.tr("Accounts") . This test is just shadowed on the phone due to

        if model() != 'Desktop':
            return