Commit 0511c075 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

On expanding jobs, extend reason trail

Certain op-codes expand to a set of jobs. For
those new jobs, extend their reason trail with
the reasons of the job that expanded to them.
In this way, also for indirectly genreated jobs
a complete trace back to the initiator can be
Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarHelga Velroyen <>
parent c4ae4fb1
......@@ -210,6 +210,10 @@ def _SetBaseOpParams(src, defcomment, dst):
if not getattr(dst, opcodes.COMMENT_ATTR, None):
dst.comment = defcomment
if hasattr(src, constants.OPCODE_REASON):
dst.reason = getattr(dst, constants.OPCODE_REASON, [])
dst.reason.extend(getattr(src, constants.OPCODE_REASON, []))
def _ProcessResult(submit_fn, op, result):
"""Examines opcode result.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment