Add links to o-h test pages for Failed tests on RSS

This commit adds links to o-h test pages for Failed tests on RSS.
Adding these links could be useful to know its test trends easily.

Change-Id: I60af6963f14ff57e8515d9b5f1959698082abf71
This commit is contained in:
Masayuki Igawa 2017-09-11 13:37:54 -06:00
parent 870833fc37
commit ce23c005f8
No known key found for this signature in database
GPG Key ID: 290F53EDC899BF89
1 changed files with 4 additions and 1 deletions

View File

@ -501,7 +501,10 @@ def get_recent_failed_runs_rss(run_metadata_key, value):
content += '<h3>Failed tests</h3>'
content += '<ul>'
for failing_test_run in failing_test_runs:
content += '<li>%s</li>' % (failing_test_run.test.test_id)
content += '<li><a href="%s">%s</a></li>' % (
rss_opts['frontend_url'] + '/#/test/' +
failing_test_run.test.test_id,
failing_test_run.test.test_id)
content += '</ul>'
entry.description(content)
response = make_response(feeds[run_metadata_key][value].rss_str())