When fetching the results of the tests executed during
a job, remove the order by reason, previously used to
group similar failures. This way, the pass reports and
the failure reports will be ordered by execution order,
which is more interesting with the new report.

Also, show the job URL right after the job summary.

Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
---
 scheduler/scheduler_models.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scheduler/scheduler_models.py b/scheduler/scheduler_models.py
index 869824c..6dd1bae 100644
--- a/scheduler/scheduler_models.py
+++ b/scheduler/scheduler_models.py
@@ -635,7 +635,7 @@ class HostQueueEntry(DBObject):
             else:
                 body += "\n[Warning] Job status: %s" % status
 
-            body += "\n\n"
+            body += "\n%s\n\n" % self._view_job_url()
 
         keyval_list = job_stats['keyval_dict_list']
         if keyval_list:
@@ -972,7 +972,6 @@ class Job(DBObject):
                 WHERE t.job_idx = j.job_idx
                 AND s.status_idx = t.status
                 AND j.afe_job_id = %s
-                ORDER BY t.reason
                 """ % self.id)
 
         framework_tests = _find_framework_tests(rows)
-- 
1.7.11.4

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to