The server copies it's client directory out to the clients ... if
that's not clean (has precompiled binaries in), it can cause a
variety of problems. Make some attempt to clean it first.

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



git-svn-id: http://test.kernel.org/svn/autotest/trunk@790 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autotest.py b/server/autotest.py
index a3c22fb..d4eeb68 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -121,6 +121,12 @@
 		if not location:
 			location = os.path.join(self.serverdir, '../client')
 			location = os.path.abspath(location)
+		# If there's stuff run on our client directory already, it
+		# can cause problems. Try giving it a quick clean first.
+		cwd = os.getcwd()
+		os.chdir(location)
+		os.system('tools/make_clean')
+		os.chdir(cwd)
 		super(Autotest, self).get(location)
 		self.got = True