blob: 299ae15ca83eab1c68658d0bfea6d2800d22a0ef [file] [log] [blame] [edit]
#pylint: disable-msg=C0111
__author__ = "raphtee@google.com (Travis Miller)"
__author__ = "ericli@chromium.com (Eric Li)"
import common
from autotest_lib.server.autoserv_parser import base_autoserv_parser
add_usage = """\
"""
class site_autoserv_parser(base_autoserv_parser):
def get_usage(self):
usage = super(site_autoserv_parser, self).get_usage()
return usage+add_usage
def setup_options(self):
base_autoserv_parser.setup_options(self)
self.parser.add_option("--image", action="store", type="string",
default="",
dest="image",
help="Full path of an OS image to install, e.g. "
"http://devserver/update/alex-release/R27-3837.0.0 "
"or a build name: x86-alex-release/R27-3837.0.0 to "
"utilize lab devservers automatically.")
def parse_args(self):
base_autoserv_parser.parse_args(self)
if self.options.image:
self.options.install_before = True
self.options.image = self.options.image.strip()