Created by James Hunt on 2014-11-04 and last modified on 2014-11-12
Get this branch:
bzr branch lp:~jamesodhunt/+junk/ubuntu-core-upgrader-tests
Only James Hunt can upload to this branch. If you are James Hunt please log in for upload directions.

Related bugs

Related blueprints

Branch information

James Hunt

Recent revisions

28. By James Hunt on 2014-11-12

!! TEMPORARY COMMIT - tests pass but are incomplete !!

* ubuntucoreupgrader/tests/test_upgrader.py: New test suite.
* bin/ubuntu-core-upgrade: Internal restructure to make testing easier.
* man/ubuntu-core-upgrade.1: Added '--root-dir'.
* ubuntucoreupgrader/parser.py:
  - Honour '--tmpdir' now.
  - Handle '--root-dir'.
  - Made output more consistent.

27. By James Hunt on 2014-11-03

* ubuntucoreupgrader/parser.py:
  - tar_generator():
    - Reworked to make logic clearer.
    - Only ignore devices if they already exist.
  - _update():
    - Strip expected file prefix rather than just blindly removing first
    - Ignore relative paths.

26. By James Hunt on 2014-10-31

Added '--no-reboot' and '--reboot-delay' options.

25. By Michael Vogt on 2014-10-28

releasing package ubuntu-core-upgrader version 0.2

24. By James Hunt on 2014-10-27

* man/ubuntu-core-upgrade.1: Added NOTES section.

23. By James Hunt on 2014-10-27

* Formatting.

22. By James Hunt on 2014-10-27

* Use python logging module.
* Log details to stderr and syslog for destructive upgrade.

21. By James Hunt on 2014-10-27

* debian/control:
  - Added Depends: on lsof and e2fsprogs (for mklost+found).
* Removed man pages for now non-existent commands.
* man/ubuntu-core-upgrade.1: New man page.
* bin/ubuntu-core-upgrade:
  - Added --check-reboot option.
  - Added uid check for privileged operations.
* ubuntucoreupgrader/parser.py:
  - get_affected_pids():
    - Don't restrict the check to the rootfs only
      since the upgrader can apply files to writable areas in some
    - Improve checks on open files for consideration.
  - Parser(): Added REBOOT_OPEN_FILE reason.

20. By James Hunt on 2014-10-23

* bin/ubuntu-core-upgrade: Move arg handling to __main__ to ensure the
  command file isn't renamed in dry-run mode.

19. By James Hunt on 2014-10-23

Add --dry-run option.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.