← Back to team overview

touch-packages team mailing list archive

[Bug 1461059] Re: open_scope frequently fails on vivid

 

** Branch linked: lp:ubuntu/unity8

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity8 in Ubuntu.
https://bugs.launchpad.net/bugs/1461059

Title:
  open_scope frequently fails on vivid

Status in Ubuntu System Test Suite:
  Fix Committed
Status in The Unity 8 shell:
  New
Status in unity8 package in Ubuntu:
  Fix Released

Bug description:
  It seems the open_scope('clickscope') calls are frequently failing in
  vivid. This appears to be due to bad timing, as the primary scope
  (Today) is not fully loaded when we start trying to swipe, so we end
  up with:

  Traceback (most recent call last):
    File "/tmp/adt-run.X7uiLh/build.uaq/real-tree/ubuntu_system_tests/tests/test_camera.py", line 53, in setUp
      self.camera_app = self._launch_camera_app().main_window
    File "/tmp/adt-run.X7uiLh/build.uaq/real-tree/ubuntu_system_tests/tests/test_camera.py", line 58, in _launch_camera_app
      apps_scope = dash.open_scope('clickscope')
    File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
      return f(instance, *args, **kwargs)
    File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/unity8/shell/emulators/dash.py", line 88, in open_scope
      return self._open_scope_scrolling(scope_loader)
    File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/unity8/shell/emulators/dash.py", line 109, in _open_scope_scrolling
      scroll()
    File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/autopilot/logging.py", line 46, in inner
      return f(instance, *args, **kwargs)
    File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/unity8/shell/emulators/dash.py", line 156, in _scroll_to_right_scope
      self.dash_content_list.currentIndex.wait_for(original_index + 1)
    File "/tmp/adt-run.X7uiLh/deps/usr/lib/python3/dist-packages/autopilot/introspection/types.py", line 180, in wait_for
      failure_msg))
  AssertionError: After 10.0 seconds test on QQuickListView.currentIndex failed: 2 != dbus.Int32(1, variant_level=1)

  Probably there needs to be a delay or some check to make sure the
  scope is fully loaded before attempting to swipe.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-system-tests/+bug/1461059/+subscriptions