Add an --install-in-tmpdir option to autoserv that allows us to change
the default Autotest client install behaviour so that new clients
are installed in new temporary directories instead of the "standard"
locations. This only affects installs that don't explicitly request
a specific location.

The expected use for this is to allow the use of multiple server jobs
against the same machine without having them collide with one another.

Risk: Low
Visibility: Adds a new flag to autoserv, but the default behaviour
is unchanged.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2510 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autoserv b/server/autoserv
index a67d2c2..b6ba572 100755
--- a/server/autoserv
+++ b/server/autoserv
@@ -9,7 +9,7 @@
 import sys, os, re, traceback, signal, time
 
 import common
-from autotest_lib.server import server_job, utils, autoserv_parser
+from autotest_lib.server import server_job, utils, autoserv_parser, autotest
 from autotest_lib.client.common_lib import debug
 
 
@@ -179,6 +179,9 @@
     if parser.options.write_pidfile:
         pid_file_manager.open_pid_file(results)
 
+    autotest.BaseAutotest.set_install_in_tmpdir(
+        parser.options.install_in_tmpdir)
+
     exit_code = 0
     try:
         try: