* get rid of the code to create the drone temp dir in drones.py. This used to be necessary because we needed that directory just to run drone_utility (so we could put the pickle file there). But now we use stdin, so we don't need this anymore. (drone_utility still initializes the temp dir for its own use.)
* add a global_config option results_host_installation_directory, allowing the administrator to specify the install dir for the results drone. I realized we can't actually infer that from the results directory itself.
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3865 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/drones.py b/scheduler/drones.py
index 9f90b41..9358449 100644
--- a/scheduler/drones.py
+++ b/scheduler/drones.py
@@ -58,6 +58,10 @@
self.clear_call_queue()
+ def set_autotest_install_dir(self, path):
+ pass
+
+
class _LocalDrone(_AbstractDrone):
def __init__(self):
super(_LocalDrone, self).__init__()
@@ -80,25 +84,12 @@
class _RemoteDrone(_AbstractDrone):
- _temporary_directory = None
-
def __init__(self, hostname):
super(_RemoteDrone, self).__init__()
self.hostname = hostname
self._host = drone_utility.create_host(hostname)
self._autotest_install_dir = AUTOTEST_INSTALL_DIR
- try:
- self._host.run('mkdir -p ' + self._temporary_directory,
- timeout=10)
- except error.AutoservError:
- pass
-
-
- @classmethod
- def set_temporary_directory(cls, temporary_directory):
- cls._temporary_directory = temporary_directory
-
def set_autotest_install_dir(self, path):
self._autotest_install_dir = path
@@ -136,10 +127,6 @@
destination_path, can_fail)
-def set_temporary_directory(temporary_directory):
- _RemoteDrone.set_temporary_directory(temporary_directory)
-
-
def get_drone(hostname):
"""
Use this factory method to get drone objects.