lp:~jamesodhunt/+junk/ubuntu-core-upgrader-tests

Created by James Hunt and last modified
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

Owner:
James Hunt
Status:
Development

Recent revisions

28. By James Hunt

!! 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

* 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
      element.
    - Ignore relative paths.

26. By James Hunt

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

25. By Michael Vogt

releasing package ubuntu-core-upgrader version 0.2

24. By James Hunt

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

23. By James Hunt

* Formatting.

22. By James Hunt

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

21. By James Hunt

* 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
      circumstances.
    - Improve checks on open files for consideration.
  - Parser(): Added REBOOT_OPEN_FILE reason.

20. By James Hunt

* 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

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.

Subscribers