diff options
author | Aviv Keshet <akeshet@chromium.org> | 2013-08-12 18:17:35 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-08-14 21:05:47 -0700 |
commit | c14951af46e88db7574b9e01ff77d2e419e8058e (patch) | |
tree | 1a81a85119c85cf7372478cdee7ffdb7362055ff /server | |
parent | d319bed5908852343a47af2cc35ebfbe2b2511fb (diff) | |
download | platform_external_autotest-c14951af46e88db7574b9e01ff77d2e419e8058e.tar.gz platform_external_autotest-c14951af46e88db7574b9e01ff77d2e419e8058e.tar.bz2 platform_external_autotest-c14951af46e88db7574b9e01ff77d2e419e8058e.zip |
[autotest] add ssh_verbosity to test_that and autoserv_utils
BUG=chromium:271621
TEST=unit tests pass. Manually verified that flag works as expected.
Change-Id: I31c59a80a7a2151c27d4a41ff8c6cfbf51d259cb
Reviewed-on: https://gerrit.chromium.org/gerrit/65720
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Tested-by: Aviv Keshet <akeshet@chromium.org>
Diffstat (limited to 'server')
-rw-r--r-- | server/autoserv_utils.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/autoserv_utils.py b/server/autoserv_utils.py index 90c6f6fd85..9ad2d055d4 100644 --- a/server/autoserv_utils.py +++ b/server/autoserv_utils.py @@ -12,7 +12,8 @@ from autotest_lib.client.common_lib import control_data def autoserv_run_job_command(autoserv_directory, machines, results_directory=None, extra_args=[], job=None, queue_entry=None, verbose=True, - write_pidfile=True, fast_mode=False): + write_pidfile=True, fast_mode=False, + ssh_verbosity=0): """ Construct an autoserv command from a job or host queue entry. @@ -33,6 +34,8 @@ def autoserv_run_job_command(autoserv_directory, machines, @param write_pidfile: Boolean (default: True) for whether autoserv should write a pidfile. @param fast_mode: bool to use fast mode (disables slow autotest features). + @param ssh_verbosity: integer between 0 and 3 (inclusive) which sents the + verbosity level of ssh. Default: 0. @returns The autoserv command line as a list of executable + parameters. """ command = [os.path.join(autoserv_directory, 'autoserv')] @@ -46,6 +49,9 @@ def autoserv_run_job_command(autoserv_directory, machines, if machines: command += ['-m', machines] + if ssh_verbosity: + command += ['--ssh_verbosity', str(ssh_verbosity)] + if job or queue_entry: if not job: job = queue_entry.job |