[Bug 1295392] [NEW] test suite failures

Barry Warsaw 1295392 at bugs.launchpad.net
Thu Mar 20 22:11:03 UTC 2014


Public bug reported:

update-manager's test suite fails.  bdmurray pointed me at this command:

xvfb-run nosetests3 -s --tests tests/test_update_list.py

which produced 5 failures and one error.   The error I think was easy
enough to fix, since it was dependent on the random number returned when
calculating phased updates, and that is dependent on the machine id.  I
mocked that out to get consistent results.

The test failures all seem to point to a change in behavior for
pkg.is_upgradable, since the updates_list is a different size than
expected (expected: 3, actual: 1).  Brian's seeing the same thing.

I'll link a branch that fixes the test bug, but atm I'm kind of stumped
at why .is_upgradable is not what's expected.

** Affects: update-manager (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: trusty

** Branch linked: lp:~barry/update-manager/lp1295392

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1295392

Title:
  test suite failures

Status in “update-manager” package in Ubuntu:
  New

Bug description:
  update-manager's test suite fails.  bdmurray pointed me at this
  command:

  xvfb-run nosetests3 -s --tests tests/test_update_list.py

  which produced 5 failures and one error.   The error I think was easy
  enough to fix, since it was dependent on the random number returned
  when calculating phased updates, and that is dependent on the machine
  id.  I mocked that out to get consistent results.

  The test failures all seem to point to a change in behavior for
  pkg.is_upgradable, since the updates_list is a different size than
  expected (expected: 3, actual: 1).  Brian's seeing the same thing.

  I'll link a branch that fixes the test bug, but atm I'm kind of
  stumped at why .is_upgradable is not what's expected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1295392/+subscriptions



More information about the foundations-bugs mailing list