Make the job executiontag available in both the server and client side job
objects as job.tag.

This is useful if your job would like to copy its data off directly to a
results repository on its own from the client machine.

Mostly small changes to pass the data down, though I did some docstring
cleanup near code that I touched which makes the diff larger.

The execution tag is taken from the autoserv -P parameter if supplied
and no explicit --execution-tag parameter is supplied.  This prevents
the need to change monitor_db.py to pass yet another autoserv parameter.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3359 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autoserv b/server/autoserv
index e16a517..faaeb81 100755
--- a/server/autoserv
+++ b/server/autoserv
@@ -48,6 +48,9 @@
     cleanup = parser.options.cleanup
     no_tee = parser.options.no_tee
     parse_job = parser.options.parse_job
+    execution_tag = parser.options.execution_tag
+    if not execution_tag:
+        execution_tag = parse_job
     host_protection = parser.options.host_protection
     ssh_user = parser.options.ssh_user
     ssh_port = parser.options.ssh_port
@@ -96,7 +99,7 @@
     job = server_job.server_job(control, parser.args[1:], results, label,
                                 user, machines, client, parse_job,
                                 ssh_user, ssh_port, ssh_pass,
-                                group_name=group_name)
+                                group_name=group_name, tag=execution_tag)
     job.logging.start_logging()
 
     # perform checks