Write out a .machines files in the server-side preamble whenever there
is more than one machine. This should ensure that such a file is
always in place.

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



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1267 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/server_job.py b/server/server_job.py
index 6d80428..f31ca83 100755
--- a/server/server_job.py
+++ b/server/server_job.py
@@ -47,6 +47,9 @@
 autotest.Autotest.job = job
 hosts.SSHHost.job = job
 barrier = barrier.barrier
+
+if len(machines) > 1:
+	open('.machines', 'w').write('\\n'.join(machines) + '\\n')
 """
 
 client_wrapper = """
@@ -56,11 +59,7 @@
 	host = hosts.SSHHost(machine)
 	at.run(control, host=host)
 
-if len(machines) > 1:
-	open('.machines', 'w').write('\\n'.join(machines) + '\\n')
-	parallel_simple(run_client, machines)
-else:
-	run_client(machines[0])
+parallel_simple(run_client, machines)
 """
 
 crashdumps = """