harness: check for and load a local static kernel configuration set

If we find $AUTODIR/configs assume this is a kernel configuration
set and load this into the job configuration.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@505 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/harness.py b/client/bin/harness.py
index 22fefd5..c71c144 100755
--- a/client/bin/harness.py
+++ b/client/bin/harness.py
@@ -31,6 +31,12 @@
 		"""
 		self.job = job
 
+		configd = os.path.join(os.environ['AUTODIR'], 'configs')
+		if os.path.isdir(configd):
+			(name, dirs, files) = os.walk(configd).next()
+			job.config_set('kernel.default_config_set',
+						[ configd + '/' ] + files)
+
 
 	def run_start(self):
 		"""A run within this job is starting"""