Fix up parsing bug - load all tests

Signed-off-by: Martin J. Bligh <mbligh@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@664 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/parse.py b/tko/parse.py
index 5d541be..42b2443 100755
--- a/tko/parse.py
+++ b/tko/parse.py
@@ -1,11 +1,13 @@
 #!/usr/bin/python
-import os, re, md5
+import os, re, md5, sys
 
 valid_users = r'(apw|mbligh|andyw|korgtest)'
 build_stock = re.compile('build generic stock (2\.\S+)')	
 build_url   = re.compile('build generic url \S*/linux-(2\.\d\.\d+(\.\d+)?(-rc\d+)?).tar')	
 valid_kernel= re.compile('2\.\d\.\d+(\.\d+)?(-rc\d+)?(-(git|bk))\d+')
 
+debug = True
+
 def shorten_patch(long):
 	short = os.path.basename(long)
 	short = re.sub(r'^patch-', '', short)
@@ -15,6 +17,11 @@
 	return short
 
 
+def dprint(info):
+	if debug:
+		sys.stderr.write(str(info) + '\n')
+
+
 class job:
 	def __init__(self, dir, type):
 		self.dir = dir
@@ -47,10 +54,8 @@
 
 		for line in open(self.status, 'r').readlines():
 			(status, testname, reason) = line.rstrip().split(' ', 2)
-			print 'GROPE_STATUS: ',
-			print (status, testname, reason)
-
-		self.tests.append(test(testname, status, reason, self.kernel, self))
+			dprint('GROPE_STATUS: '+str((status, testname, reason)))
+			self.tests.append(test(testname, status, reason, self.kernel, self))
 
 
 class kernel: