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

Unified Diff: cli/job.py

Issue 6181003: Add support for an --image flag to atest. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Fixing missing 'self.' in commented out parameters. Created 9 years, 11 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 | « no previous file | frontend/afe/model_logic.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cli/job.py
diff --git a/cli/job.py b/cli/job.py
index a5122be947932334f5b7baf4aea8f2f7d7a55df2..660dfe530762565e12c009da5c95a80030369743 100644
--- a/cli/job.py
+++ b/cli/job.py
@@ -362,6 +362,7 @@ class job_create(job_create_or_clone):
[--one-time-hosts <hosts>] [--email <email>]
[--dependencies <labels this job is dependent on>]
[--atomic_group <atomic group name>] [--parse-failed-repair <option>]
+ [--image <http://path/to/image>]
job_name
Creating a job is rather different from the other create operations,
@@ -423,6 +424,10 @@ class job_create(job_create_or_clone):
self.parser.add_option('--max_runtime',
help='Job maximum runtime in hours')
+ self.parser.add_option('-i', '--image',
+ help='OS image to install before running the '
+ 'test.')
+
@staticmethod
def _get_kernel_data(kernel_list, cmdline):
@@ -481,6 +486,8 @@ class job_create(job_create_or_clone):
tests = [t.strip() for t in options.test.split(',') if t.strip()]
self.ctrl_file_data['tests'] = tests
+ if options.image:
+ self.data['image'] = options.image
if options.reboot_before:
self.data['reboot_before'] = options.reboot_before.capitalize()
« no previous file with comments | « no previous file | frontend/afe/model_logic.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698