~jamesodhunt/ubuntu/vivid/ubuntu-core-upgrader/make-partition-sync-atomic

Viewing all changes in revision 30.

  • Committer: James Hunt
  • Date: 2015-04-13 19:47:22 UTC
  • Revision ID: james.hunt@ubuntu.com-20150413194722-f7rq9dxgpww41sqk
* ubuntucoreupgrader/tests/test_upgrader.py:
  - touch_file(): Fix to make file of size 0, not 1.
  - test_marker_file(): Removed.
  - test_other_considered_empty(): New test.
* ubuntucoreupgrader/tests/utils.py:
  - append_file(): Create zero-length file if contents are None.
* ubuntucoreupgrader/upgrader.py:
  - Replaced marker file logic by tighter scoped strategy where the s-i
    config file is pre-created with zero size prior to performing an s-i
    update operation. This strategy allows a failed update to be identified
    from either a missing s-i config file, or a zero-length one.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: