diskimage-builder/diskimage_builder/block_device/tests
Ian Wienand 824a9e91c4 Add state to NodeBase class
Making the global state reference a defined part of the node makes
some parts of the block device processing easier and removes the need
for other global values.

The state is passed to PluginNodeBase.__init__() and expected to be
passed into all nodes as they are created.  NodeBase.__init__() is
updated with the new paramater 'state'.

The parameter is removed from the create() call as nodes can simply
reference it at any point as "self.state".

This is similar to 1cdc8b20373c5d582ea928cfd7334469ff36dbce, except it
is based on I68840594a34af28d41d9522addcfd830bd203b97 which loads the
node-list from pickled state for later cmd_* calls.  Thus we only
build the state *once*, at cmd_create() time as we build the node
list.

Change-Id: I468dbf5134947629f125504513703d6f2cdace59
2017-06-08 17:13:26 +10:00
..
config Add state object, rename "results", add unit tests 2017-05-30 20:39:00 +10:00
plugin Add state to NodeBase class 2017-06-08 17:13:26 +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 Add state to NodeBase class 2017-06-08 17:13:26 +10:00
test_mbr.py Don't make image & loopdev functions static 2017-06-08 17:10:10 +10:00
test_mount_order.py Add state to NodeBase class 2017-06-08 17:13:26 +10:00
test_state.py Add state to NodeBase class 2017-06-08 17:13:26 +10:00
test_utils.py Move "functional" unit tests under block-device 2017-06-05 12:22:52 +10:00