diskimage-builder/diskimage_builder/block_device/tests
Ian Wienand 09dee46579 Move global mount tracking into state
Keep track of the mount-point ordering in a state variable, rather
than a global.  This path is tested by existing unit tests.

Note a prior change inserted the MountNode objects directly into a
list in self.state, which makes sorting quite easy as it can just
implement __lt__.  Unfortunately we still json dump the state, and
thus we can't have aribtrary objects in it (future work may be to
check keys inserted into the status object...).  So we have to do a
bit of wrangling with tuple lists and comparision functions here, but
it's not too bad.

Change-Id: I0c51e0c53c4efdb7a65ab0efe09a6780cb1affa8
2017-06-08 17:13:28 +10:00
..
config Use global state to check for duplicate fs labels 2017-06-08 17:13:28 +10:00
plugin Remove 'state' argument from later cmd_* calls 2017-06-08 17:13:28 +10:00
__init__.py Refactor: block-device handling (local loop) 2016-09-08 04:31:01 +00:00
test_base.py Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
test_config.py Move global mount tracking into state 2017-06-08 17:13:28 +10:00
test_mbr.py Don't make image & loopdev functions static 2017-06-08 17:10:10 +10:00
test_mkfs.py Use global state to check for duplicate fs labels 2017-06-08 17:13:28 +10:00
test_mount_order.py Add state to NodeBase class 2017-06-08 17:13:26 +10:00
test_state.py Remove 'state' argument from later cmd_* calls 2017-06-08 17:13:28 +10:00
test_utils.py Move "functional" unit tests under block-device 2017-06-05 12:22:52 +10:00