mark results as 'bot'

Summary:
Use the new wikitcms / Wikitcms feature that results can be
marked as 'bot' (indicating they're from an automated test
system, not a human). Requires python-wikitcms >= 1.1.4

Test Plan:
Update to wikitcms 1.1.4, report some results; they should
appear with bot=true and show the bot head on the result page.

Reviewers: kparal, garretraziel

Reviewed By: garretraziel

Subscribers: tflink

Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D349
This commit is contained in:
Adam Williamson 2015-04-22 16:20:36 -07:00
parent 4f25c90dbf
commit 1ea0ba1db8

View File

@ -50,7 +50,8 @@ def get_passed_testcases(job_ids):
env = arch if uniqueres['env'] == '$RUNARCH$' else uniqueres['env']
result = ResTuple(
testtype=uniqueres['type'], release=release, milestone=milestone, compose=compose,
testcase=testcase, section=uniqueres['section'], testname=testname, env=env, status='pass')
testcase=testcase, section=uniqueres['section'], testname=testname, env=env, status='pass',
bot=True)
passed_testcases.add(result)
return sorted(list(passed_testcases), key=attrgetter('testcase'))