Commit 6759d6d2 authored by Luis Araujo's avatar Luis Araujo

Use testcases reference from the Job query

Instead of triggering a whole new query in the TestCase table, use the
testcases reference from its Job query to render the test case table.
Signed-off-by: Luis Araujo's avatarLuis Araujo <luis.araujo@collabora.co.uk>
parent 49e7918d
Pipeline #4212 passed with stage
in 1 minute and 33 seconds
......@@ -171,7 +171,7 @@ def generate_report(image_release, image_version,
job.image_architecture,
job.visibility ])
for test_case in TestCase.query.filter_by(job_id=job.id).all():
for test_case in job.testcases:
# Manual tests have no lava_url
lava_url = '' if job.exec_type == 'manual' else \
config['lava-url'] + test_case.lava_url
......
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