Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: server/site_autoserv_parser.py

Issue 651043: Enable chromeos reimage function from autoserv command line. Part I. (Closed)
Patch Set: patch 12 Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/hosts/site_host.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/site_autoserv_parser.py
diff --git a/server/site_autoserv_parser.py b/server/site_autoserv_parser.py
index 03b8c4e51a39ef0b0046abb91163e1f0b74149ff..107e5b953c399679081541aaaff48a72fa8e1879 100644
--- a/server/site_autoserv_parser.py
+++ b/server/site_autoserv_parser.py
@@ -1,4 +1,5 @@
__author__ = "raphtee@google.com (Travis Miller)"
+__author__ = "ericli@chromium.com (Eric Li)"
import common
from autotest_lib.server.autoserv_parser import base_autoserv_parser
@@ -12,3 +13,17 @@ 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",
+ dest="image",
+ help="Full path of an osimage to install.")
+
+
+ def parse_args(self):
+ base_autoserv_parser.parse_args(self)
+ if self.options.image:
+ self.options.install_before = True
+
« no previous file with comments | « server/hosts/site_host.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698