pipeline: rename stage_timeout in Stage.run

Rename the `stage_timeout` paramter for the `Stage.run` method to
just `timeout`. It is clear from the context that this is the
stage timeout now.
This commit is contained in:
Christian Kellner 2021-12-06 16:00:43 +00:00 committed by mergify[bot]
parent fdf3160f49
commit 70634d7578

View file

@ -114,7 +114,7 @@ class Stage:
with open(location, "w", encoding="utf-8") as fp:
json.dump(args, fp)
def run(self, tree, runner, build_tree, store, monitor, libdir, stage_timeout=None):
def run(self, tree, runner, build_tree, store, monitor, libdir, timeout=None):
with contextlib.ExitStack() as cm:
build_root = buildroot.BuildRoot(build_tree, runner, libdir, store.tmp)
@ -195,7 +195,7 @@ class Stage:
r = build_root.run([f"/run/osbuild/bin/{self.name}"],
monitor,
timeout=stage_timeout,
timeout=timeout,
binds=binds,
readonly_binds=ro_binds)