test/osbuild: add order check for on_demand
Add a check that ensures the order of inputs to `depsolve` is preserved in the result.
This commit is contained in:
parent
b8fb1ec1e9
commit
2129f3d68b
1 changed files with 9 additions and 0 deletions
|
|
@ -223,6 +223,15 @@ class TestDescriptions(unittest.TestCase):
|
|||
res = manifest.depsolve(store, names(image))
|
||||
assert res == names(build, rootfs, dep, image)
|
||||
|
||||
# ensure the order of inputs is preserved during
|
||||
# the depsolving so that we build things in the
|
||||
# same way they were requested
|
||||
res = manifest.depsolve(store, names(ul, image))
|
||||
assert res == names(build, dep, ul, rootfs, image)
|
||||
|
||||
res = manifest.depsolve(store, names(image, ul))
|
||||
assert res == names(build, rootfs, dep, image, ul)
|
||||
|
||||
# if we have the 'dep' dependency in the store,
|
||||
# we should be not be building that
|
||||
store.have.add(dep.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue