~jamesodhunt/+junk/ubuntu-core-upgrader-add-more-tests

Viewing all changes in revision 17.

  • Committer: James Hunt
  • Date: 2015-03-04 11:05:05 UTC
  • Revision ID: james.hunt@ubuntu.com-20150304110505-ziwa3orwhn8a7044
Fix-up changelog to reflect reality.

[ Michael Vogt ]
[ James Hunt ]
* ubuntucoreupgrader/tests/test_upgrader.py:
  - More tar_generator() tests.
  - Added first Upgrader() object test.
* ubuntucoreupgrader/upgrader.py:
  - parse_args():
    - Moved from bin/ubuntu-core-upgrade to simplify testing.
    - Now takes an args parameter.
  - tar_generator():
     - Simplified logic to determine if an unpack should occur.
     - Fix to allow '--root-dir' to work again.
     - Fix bug where path not set (only affecting tests).
  - Upgrader:__init__():
    - Assert root_dir option set.
    - Moved some logic to prepare() and restart_associated_services() to
      simplify testing.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: