Add autotest support in server side

From: poirier@google.com

This patch adds some functionality to autotest in autoserv. Credit goes 
to Ryan for some of this.

Autotest support in autoserv:
* automatically hardreset the machine if it never comes back online
* autotest now uses get() interface
* remove autotest results directory if it is there before run (to avoid 
mixing things up)

utils has unarchive code (to extract tar bz2 gz)
DEBKernel uses get() interface



git-svn-id: http://test.kernel.org/svn/autotest/trunk@570 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/tests/autotest_test.py b/server/tests/autotest_test.py
index 46507dd..39dfe2a 100644
--- a/server/tests/autotest_test.py
+++ b/server/tests/autotest_test.py
@@ -73,12 +73,13 @@
 				
 		host = MockInstallHost()
 		tmpdir = utils.get_tmp_dir()
-		self.autotest.get_from_file(tmpdir)
+		self.autotest.get(tmpdir)
 		self.autotest.install(host)
-		self.assertEqual(host.commands,
-				 ['mkdir -p /usr/local/autotest',
-				  'send_file: %s/ %s' % (tmpdir,
-							'/usr/local/autotest')])
+		self.assertEqual(host.commands[0],
+				 'mkdir -p /usr/local/autotest')
+		self.assertTrue(host.commands[1].startswith('send_file: /tmp/'))
+		self.assertTrue(host.commands[1].endswith(
+			'/ /usr/local/autotest'))