From 1ea0ba1db851d4ad657096a15faba4ef0b610e03 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 22 Apr 2015 16:20:36 -0700 Subject: [PATCH] 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 --- openqa_trigger/report_job_results.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openqa_trigger/report_job_results.py b/openqa_trigger/report_job_results.py index 483bf0a..4825db3 100644 --- a/openqa_trigger/report_job_results.py +++ b/openqa_trigger/report_job_results.py @@ -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'))