From 8084713b7cadde6d8af6b2ae3c7344f467b9787b Mon Sep 17 00:00:00 2001 From: lmr Date: Mon, 23 May 2011 13:45:09 +0000 Subject: 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 git-svn-id: svn://test.kernel.org/autotest/trunk@5375 592f7852-d20e-0410-864c-8624ca9c26a4 --- scheduler/scheduler_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scheduler') 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) -- cgit v1.2.3