Add in condition for db class, for example select * from tests where kernel_idx 
in (x, y, z)

From: Ying Han <yinghan@google.com>
Signed-off-by: Martin Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1045 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/frontend.py b/tko/frontend.py
index 9b1772c..f3fac1a 100755
--- a/tko/frontend.py
+++ b/tko/frontend.py
@@ -146,11 +146,11 @@
 
 class test:
 	@classmethod
-	def select(klass, db, where = {}, distinct = False):
+	def select(klass, db, where = {}, wherein = {}, distinct = False):
 		fields = ['test_idx', 'job_idx', 'test', 'subdir', 
 			  'kernel_idx', 'status', 'reason', 'machine_idx']
 		tests = []
-		for row in db.select(','.join(fields), 'tests', where, distinct):
+		for row in db.select(','.join(fields), 'tests', where, wherein,distinct):
 			tests.append(klass(db, *row))
 		return tests