summaryrefslogtreecommitdiff
path: root/scheduler
diff options
context:
space:
mode:
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>2011-05-23 13:45:09 +0000
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>2011-05-23 13:45:09 +0000
commit8084713b7cadde6d8af6b2ae3c7344f467b9787b (patch)
tree32fcc829b36bf59566366e8c54dc189ee0d9ae06 /scheduler
parent065f74c6c44218ef654a3f70d077bda32f3e53df (diff)
scheduler/scheduler_models.py: Only look relevant fields determining test failures
This change avoids looking at other irrelevant tupple entries and limits the finding of failed tests to the correct tupple entry. Signed-off-by: Cleber Rosa <crosa@redhat.com> git-svn-id: svn://test.kernel.org/autotest/trunk@5375 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'scheduler')
-rw-r--r--scheduler/scheduler_models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scheduler/scheduler_models.py b/scheduler/scheduler_models.py
index 870914d5..3675397c 100644
--- a/scheduler/scheduler_models.py
+++ b/scheduler/scheduler_models.py
@@ -895,7 +895,7 @@ class Job(DBObject):
ORDER BY t.reason
""" % self.id)
- failed_rows = [r for r in rows if not 'GOOD' in r]
+ failed_rows = [r for r in rows if not r[1] == 'GOOD']
n_test_jobs = _find_test_jobs(rows)
n_test_jobs_failed = _find_test_jobs(failed_rows)