summaryrefslogtreecommitdiff
path: root/server/autoserv_parser.py
diff options
context:
space:
mode:
authorjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-12-03 16:27:07 +0000
committerjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-12-03 16:27:07 +0000
commitaade8e617252df88dd7538c2a6f87f8f17b7d222 (patch)
tree3fae621d9737812a9a49e122674c0f0e070e4399 /server/autoserv_parser.py
parent0d5964df79135f5d980914cfd2ca7c664fef3828 (diff)
Refactor the core pidfile code out of autoserv and into a common lib
module, and add a similar pidfile option to the parser. Risk: Low Visibility: Adds an (opt-in) .parser_execute pidfile to the parser. Signed-off-by: John Admanski <jadmanski@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@2538 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'server/autoserv_parser.py')
-rw-r--r--server/autoserv_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/autoserv_parser.py b/server/autoserv_parser.py
index f90deb2f..808dce49 100644
--- a/server/autoserv_parser.py
+++ b/server/autoserv_parser.py
@@ -66,9 +66,9 @@ class base_autoserv_parser(object):
self.parser.add_option("-N", action="store_true",
dest="no_logging", default=False,
help="no logging")
- self.parser.add_option("-p", action="store_true",
+ self.parser.add_option("-p", "--write-pidfile", action="store_true",
dest="write_pidfile", default=False,
- help="write pidfile (.autoserv_execute)")
+ help="write pidfile (.autoserv_execute)")
protection_levels = [host_protections.Protection.get_attr_name(s)
for i, s in host_protections.choices]
self.parser.add_option("--host-protection", action="store",