Added the aditional -s flag which specifies that a test is server side.
Will be ignored unless -c is also specified and will then throw an error.

Signed-off-by: Travis Miller <raphtee@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1898 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autoserv b/server/autoserv
index 20fe89d..6bb14db 100755
--- a/server/autoserv
+++ b/server/autoserv
@@ -61,21 +61,27 @@
 
     machines = parser.options.machines.split(',')
     machines_file = parser.options.machines_file
-    label    = parser.options.label
-    user     = parser.options.user
-    client   = parser.options.client
-    reboot   = parser.options.reboot
+    label = parser.options.label
+    user = parser.options.user
+    client = parser.options.client
+    server = parser.options.server
+    reboot = parser.options.reboot
     install_before = parser.options.install_before
-    install_after  = parser.options.install_after
-    verify   = parser.options.verify
-    repair   = parser.options.repair
-    no_tee   = parser.options.no_tee
+    install_after = parser.options.install_after
+    verify = parser.options.verify
+    repair = parser.options.repair
+    no_tee = parser.options.no_tee
     parse_job = parser.options.parse_job
     host_protection = parser.options.host_protection
     ssh_user = parser.options.ssh_user
     ssh_port = parser.options.ssh_port
     ssh_pass = parser.options.ssh_pass
 
+    # can't be both a client and a server side test
+    if client and server:
+        print "Can not specify a test as both server and client!"
+        sys.exit(1)
+
     if len(parser.args) < 1 and not verify and not repair:
         print parser.parser.print_help()
         sys.exit(1)