mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-05 13:14:47 +02:00
steps/runconfig: Allow usepty to be specified
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
265ecf42d8
commit
a16d3ff825
|
@ -144,12 +144,13 @@ def get_runconfig_legacy_step(posttrigger):
|
||||||
timeout=16200) # default of 1200s/20min is too short, use 4.5hrs
|
timeout=16200) # default of 1200s/20min is too short, use 4.5hrs
|
||||||
return step
|
return step
|
||||||
|
|
||||||
def get_runconfig_step(name, stepname, phase, description, posttrigger):
|
def get_runconfig_step(name, stepname, phase, description, usepty, posttrigger):
|
||||||
step = SimpleLogObserver(
|
step = SimpleLogObserver(
|
||||||
command=get_runconfig_command(posttrigger) + ['--stepname', stepname, '--phase', phase],
|
command=get_runconfig_command(posttrigger) + ['--stepname', stepname, '--phase', phase],
|
||||||
name=name,
|
name=name,
|
||||||
description=description,
|
description=description,
|
||||||
lazylogfiles=True,
|
lazylogfiles=True,
|
||||||
|
usePTY=usepty,
|
||||||
timeout=16200) # default of 1200s/20min is too short, use 4.5hrs
|
timeout=16200) # default of 1200s/20min is too short, use 4.5hrs
|
||||||
return step
|
return step
|
||||||
|
|
||||||
|
@ -198,11 +199,13 @@ class RunConfigCheckSteps(shell.ShellCommand):
|
||||||
else:
|
else:
|
||||||
steps = []
|
steps = []
|
||||||
for s in jsonconfig:
|
for s in jsonconfig:
|
||||||
|
if 'usepty' not in s:
|
||||||
|
s['usepty'] = False
|
||||||
if 'bbname' in s:
|
if 'bbname' in s:
|
||||||
name = s['bbname']
|
name = s['bbname']
|
||||||
else:
|
else:
|
||||||
name = "run-config-" + s['name'] + "-" + s['phase']
|
name = "run-config-" + s['name'] + "-" + s['phase']
|
||||||
steps.append(get_runconfig_step(name, s['name'], s['phase'], s['description'], self.posttrigger))
|
steps.append(get_runconfig_step(name, s['name'], s['phase'], s['description'], s['usepty'], self.posttrigger))
|
||||||
self.build.addStepsAfterCurrentStep(steps)
|
self.build.addStepsAfterCurrentStep(steps)
|
||||||
return SUCCESS
|
return SUCCESS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user