提交 4db835b0 编写于 作者: L Lucas Meneghel Rodrigues

avocado.job: Use sequential numbers for variant tags, do not encode names

Basically, trying to encode information of the variants themselves
in the tag name is a lost battle, since:

1) We need unique test ids, and sometimes only the last part of
   the name of each variant combined is not going to cut it
2) Coding the entire path of each variant combined would create
   in many cases enormous tags and the point would be lost

So go back and use sequential numbers that match the output
of the multiplex plugin. This way it'll be easy to correlate
variants and tag numbers.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 0b34d99e
......@@ -446,14 +446,15 @@ class Job(object):
except SyntaxError:
variants = None
if variants:
tag = 1
for variant in variants:
env = {}
for t in variant:
env.update(dict(t.environment))
tag = ".".join([str(var.name) for var in variant])
env.update({'tag': tag})
env.update({'id': url})
params_list.append(env)
tag += 1
else:
params_list.append({'id': url})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册