Pipeline: drop the build setter
Take this as an argumnet to __init__ in the same way that `base` is. This avoids us having to deal with the case of someone setting a stage before the build, which does not work as the stage id will be wrong. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
ea68bb0c26
commit
0a9223b6f2
2 changed files with 9 additions and 14 deletions
|
|
@ -47,8 +47,7 @@ class TestDescriptions(unittest.TestCase):
|
|||
build = osbuild.Pipeline()
|
||||
build.add_stage("org.osbuild.test", { "one": 1 })
|
||||
|
||||
pipeline = osbuild.Pipeline()
|
||||
pipeline.set_build(build)
|
||||
pipeline = osbuild.Pipeline(build)
|
||||
pipeline.add_stage("org.osbuild.test", { "one": 2 })
|
||||
pipeline.set_assembler("org.osbuild.test")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue