Comment 1 for bug 1442547

Vincent Ladeuil (vila) wrote :

The failure became permanent with the following backtrace:

======================================================================
FAIL: ubuntu_sanity_tests.tests.test_settings_wizard.SettingsWizardTestCase.test_complete_settings_wizard
ubuntu_sanity_tests.tests.test_settings_wizard.SettingsWizardTestCase.test_complete_settings_wizard
----------------------------------------------------------------------
_StringException: Binary content:
  FailedTestScreenshot (image/png)

test-log: {{{
10:29:47.055 ERROR content:47 - Could not add content object 'None' due to IO Error: [Errno 2] No such file or directory: '/var/log/syslog'
10:29:47.383 WARNING testcase:175 - Process manager backend unavailable, application snapshot support disabled.
10:29:47.388 INFO logging:45 - SettingsWizardTestCase: Launch Unity8 with testability enabled. Arguments (). Keyword arguments: {}.
10:29:47.480 INFO logging:45 - str: Set the value of an initctl environment variable. Arguments ('1',). Keyword arguments: {'global_': False}.
10:29:47.536 INFO process_helpers:144 - Starting job unity8 with arguments ('QT_LOAD_TESTABILITY=1',).
10:29:48.831 INFO process_helpers:152 - unity8 start/running, process 6414

10:30:01.857 DEBUG logging:45 - Unity8: wait_for_greeter_content. Arguments (). Keyword arguments: {}.
10:30:07.976 INFO logging:45 - WizardLanguagePage: continue_. Arguments (). Keyword arguments: {}.
10:30:08.408 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:08.409 DEBUG _uinput:485 - Tapping at: 398,893
10:30:11.138 INFO logging:45 - PasswordPage: continue_. Arguments (). Keyword arguments: {}.
10:30:11.818 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:11.819 DEBUG _uinput:485 - Tapping at: 398,893
10:30:13.208 INFO logging:45 - PasswordEntryPage: enter_pin. Arguments ('0000',). Keyword arguments: {}.
10:30:13.376 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:13.377 DEBUG _uinput:485 - Tapping at: 270,640
10:30:13.705 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:13.707 DEBUG _uinput:485 - Tapping at: 270,640
10:30:14.022 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:14.023 DEBUG _uinput:485 - Tapping at: 270,640
10:30:14.366 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:14.367 DEBUG _uinput:485 - Tapping at: 270,640
10:30:15.987 INFO logging:45 - ConfirmPasswordPage: enter_pin. Arguments ('0000',). Keyword arguments: {}.
10:30:16.166 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:16.167 DEBUG _uinput:485 - Tapping at: 270,640
10:30:16.532 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:16.533 DEBUG _uinput:485 - Tapping at: 270,640
10:30:16.877 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:16.878 DEBUG _uinput:485 - Tapping at: 270,640
10:30:17.223 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:17.224 DEBUG _uinput:485 - Tapping at: 270,640
10:30:20.504 INFO logging:45 - WifiConnectPage: select_network. Arguments (<ubuntu_sanity_tests.helpers.unity8.shell.Unity8 object at 0xb475add0>,
 'wila'). Keyword arguments: {}.
10:30:21.280 DEBUG _common:45 - Moving to object's globalRect coordinates.
10:30:21.281 DEBUG _uinput:485 - Tapping at: 494,852
10:30:21.383 INFO settings_wizard:351 - Waiting longer for notification object
10:32:36.890 INFO logging:45 - str: Remove an initctl environment variable. Arguments (). Keyword arguments: {'global_': False}.
}}}

Traceback (most recent call last):
  File "/tmp/adt-run.y5DOLa/build.Cwf/real-tree/ubuntu_sanity_tests/tests/test_settings_wizard.py", line 147, in test_complete_settings_wizard
    self.config[KEY_WIFI_PASSWORD])
  File "/tmp/adt-run.y5DOLa/build.Cwf/real-tree/ubuntu_sanity_tests/tests/test_settings_wizard.py", line 94, in _test_wifi_connect_page
    self.unity, ssid)
  File "/tmp/adt-run.y5DOLa/deps/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
    return f(instance, *args, **kwargs)
  File "/tmp/adt-run.y5DOLa/build.Cwf/real-tree/ubuntu_sanity_tests/helpers/unity8/settings_wizard.py", line 374, in select_network
    return PasswordNotification(self._get_notification(unity))
  File "/tmp/adt-run.y5DOLa/build.Cwf/real-tree/ubuntu_sanity_tests/helpers/unity8/settings_wizard.py", line 354, in _get_notification
    Notification, objectName='notification1', visible='True')
  File "/tmp/adt-run.y5DOLa/deps/usr/lib/python3/dist-packages/autopilot/introspection/dbus.py", line 295, in wait_select_single
    return self.select_single(type_name, **kwargs)
  File "/tmp/adt-run.y5DOLa/deps/usr/lib/python3/dist-packages/autopilot/introspection/dbus.py", line 244, in select_single
    raise StateNotFoundError(type_name_str, **kwargs)
autopilot.exceptions.StateNotFoundError: Object not found with name 'Notification' and properties {'objectName': 'notification1', 'visible': 'True'}.

Tips on minimizing the occurrence of this failureare available here: http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot/faq/troubleshooting.html

----------------------------------------------------------------------