← Back to team overview

dx-packages team mailing list archive

[Bug 1436095] Re: AP test failure: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click

 

This bug was fixed in the package unity -
7.2.5+14.04.20150521.1-0ubuntu1

---------------
unity (7.2.5+14.04.20150521.1-0ubuntu1) trusty; urgency=medium

  [ Chris Townsend ]
  * Releasing 7.2.5.
  * Bump version to 7.2.5.
  * Use a 2 second delay before showing the first run shortcut hints to
    workaround a race condition on input handling. (LP: #1313597)

  [ Andrea Azzarone ]
  * Add the possibility to specify the font size and the font weight
    without chaning the default font name. (LP: #886478)
  * Do not restore focus if a quicklist is opened during launcher key
    navigation. (LP: #932486)
  * Draw osk above unity shell. (LP: #1413165)
  * Forward first key event that happens on top of the blank window to
    the lockscreen. (LP: #1308265)
  * Make sure scope_views_[filter.id] exists before using operator[] on
    it. (LP: #926979)
  * Release pointer barrier if launcher is in lock_hide state. (LP:
    #1029114)

  [ Brandon Schaefer ]
  * When we quit the quicklist it would check if the mouse was over the
    launcher, if it wasn't it would fold the launcher. We don't need to
    check this if we are in keynav as we want all the icons to be
    unfolded. (LP: #1246891)

  [ CI Train Bot ]
  * New rebuild forced.

  [ Stephen M. Webb ]
  * AP tests: accounted for arbitrarily-raised exceptions in checking
    scaled windows (LP: #1436095)

 -- CI Train Bot <ci-train-bot@xxxxxxxxxxxxx>  Thu, 21 May 2015 15:07:15
+0000

** Changed in: unity (Ubuntu Trusty)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1436095

Title:
  AP test failure:
  unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click

Status in Unity:
  Fix Committed
Status in Unity 7.2 series:
  In Progress
Status in unity package in Ubuntu:
  Fix Released
Status in unity source package in Trusty:
  Fix Released

Bug description:
  [ Impact ]

  Failed Autopilot tests are not good.

  [ Test Case ]

  1. Run 'autopilot run unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click'
  2. Run 'autopilot run unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_close_button_click'
  3. Observe that the tests don't fail.

  [ Regression Potential ]

  None observed.

  Debdiff of the SRU is found here:
  https://bugs.launchpad.net/unity/+bug/886478/+attachment/4401967/+files/unity.7.2.5.debdiff

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

  Original Description:

  The following two AP tests consistently ERROR during regular Unity
  testing.

  ======================================================================
  ERROR: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_middle_click
  ----------------------------------------------------------------------
  Empty attachments:
    /var/log/syslog

  unity-log: {{{WARN  2015-03-24 13:43:02 nux.inputmethod.ibus
  InputMethodIBus.cpp:63 Impossible to connect to connect to ibus}}}

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 128, in test_scaled_window_closes_on_middle_click
      self.assertWindowIsScaledEquals(target_xid, False)
    File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals
      self.assertThat(refresh_fn, Eventually(Equals(scaled)))
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat
      mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper
      mismatch = matcher.match(matchee)
    File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match
      wait_fun(self.matcher, self.timeout)
    File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for
      new_value = refresh_fn()
    File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda>
      refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows]
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__
      self.refresh_state()
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state
      _, new_state = self.get_new_state()
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state
      raise StateNotFoundError(self.__class__.__name__, id=self.id)
  StateNotFoundError: Object not found with name 'Window' and properties {'id': 148832}.
  ======================================================================
  ERROR: unity.tests.test_spread.SpreadTests.test_scaled_window_closes_on_close_button_click
  ----------------------------------------------------------------------
  Empty attachments:
    /var/log/syslog

  unity-log: {{{WARN  2015-03-24 14:00:34 nux.inputmethod.ibus
  InputMethodIBus.cpp:63 Impossible to connect to connect to ibus}}}

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 148, in test_scaled_window_closes_on_close_button_click
      self.assertWindowIsScaledEquals(target_xid, False)
    File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 68, in assertWindowIsScaledEquals
      self.assertThat(refresh_fn, Eventually(Equals(scaled)))
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 421, in assertThat
      mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 471, in _matchHelper
      mismatch = matcher.match(matchee)
    File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 113, in match
      wait_fun(self.matcher, self.timeout)
    File "/usr/lib/python2.7/dist-packages/autopilot/matchers/__init__.py", line 129, in _callable_wait_for
      new_value = refresh_fn()
    File "/usr/lib/python2.7/dist-packages/unity/tests/test_spread.py", line 67, in <lambda>
      refresh_fn = lambda: xid in [w.xid for w in self.unity.screen.scaled_windows]
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 520, in __getattr__
      self.refresh_state()
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 474, in refresh_state
      _, new_state = self.get_new_state()
    File "/usr/lib/python2.7/dist-packages/autopilot/introspection/dbus.py", line 564, in get_new_state
      raise StateNotFoundError(self.__class__.__name__, id=self.id)
  StateNotFoundError: Object not found with name 'Window' and properties {'id': 224517}.
  ======================================================================

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1436095/+subscriptions