diskimage-builder/diskimage_builder/tests
Ian Wienand 35a1e7bee9 Refactor mount-point sorting
Currently we keep a global list of mount-points defined in the
configuration and automatically setup dependencies between mount nodes
based on their global "mount order" (i.e. higher directories mount
first).

The current method for achieving this is roughly to add the mount
points to a dictionary indexed my mount-point, then at "get_edge()"
call build the sorted list ... unless it has already been built
because this gets called for every node.

It seems much simpler to simply keep a sorted list of the
MountPointNode objects as we add them.  We don't need to implement a
sorting algorithm then, we can just use sort() and implement __lt__
for the nodes.

I believe the existing mount-order unit testing is sufficient; I'm
struggling to find a valid configuration where the mount-order is
*not* correctly specified in the configuration graph.

Change-Id: Idc05cdf42d95e230b9906773aa2b4a3b0f075598
2017-05-31 11:05:50 +10:00
..
functional Refactor mount-point sorting 2017-05-31 11:05:50 +10:00
__init__.py Python code refactorings. 2013-11-12 10:47:57 -05:00
base.py Add unit test for cache-url 2014-09-30 16:39:21 -05:00
test_elementdeps.py Refactor: use lazy logging 2017-05-30 14:39:58 +10:00
test_loggingconfig.py Introspect logging testing more 2016-06-16 13:54:52 +10:00
test_no_dup_filenames.py Add test to ensure we don't duplicate filenames 2014-06-11 08:16:41 -04:00