blob: 3d7a753219b89cdbbce1fe22416046deef3be76e [file] [log] [blame] [edit]
__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