buildroot: make var a positional argument
Commit d028ea5b16 introduced bug when introducing the `store`
argument to `Stage.run`, instead of passing `var=var`, i.e.
`var` is being passed as keyword argument, it is now being
passed as a positional one. Since the `path=/run/osbuild`
keyword argument comes before the `var=/var/tmp` argument,
`var` is now being passed as `path` instead of var.
Since `var` is always being passed in throughout the entire
codebase, make it a positional argument, and move it before
`path`.
Adapt the tests to pass `var` as positional argument.
This commit is contained in:
parent
dd50387bbc
commit
749f59cc9a
2 changed files with 6 additions and 6 deletions
|
|
@ -59,7 +59,7 @@ class BuildRoot(contextlib.AbstractContextManager):
|
|||
only when exiting the context manager.
|
||||
"""
|
||||
|
||||
def __init__(self, root, runner, libdir, path="/run/osbuild", var="/var/tmp"):
|
||||
def __init__(self, root, runner, libdir, var, path="/run/osbuild"):
|
||||
self._exitstack = None
|
||||
self._rootdir = root
|
||||
self._rundir = path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue