with tempfile.NamedTemporaryFile(prefix='teuthology-worker.',
suffix='.tmp',) as tmp:
- yaml.safe_dump(data=job_config['config'], stream=tmp)
+ yaml.safe_dump(data=job_config, stream=tmp)
tmp.flush()
arg.append(tmp.name)
p = subprocess.Popen(
del ctx.config['targets']
job_config = dict(
- config=ctx.config,
name=ctx.name,
last_in_suite=ctx.last_in_suite,
email=ctx.email,
owner=ctx.owner,
verbose=ctx.verbose,
)
+ # Merge job_config and ctx.config
+ job_config.update(ctx.config)
if ctx.timeout is not None:
job_config['results_timeout'] = ctx.timeout