[autotest] Convert all the suite control files to use an argument dictionary
Currently we manually pass individual variables into the reimage_and_run method
of the suite control file to launch suite. It is not scalable. If we want to
add new variable to the reimage_and_run, we need to manually add into every
suite control file.
Now convert all the suite control files to use arg_dict, an argument dictionary
inserted into the control file by site_rpc_interface.py, for the reimage_and_run
method. It will be more scalable.
BUG=chromium:492910
TEST=Pass dummy suite on moblab with the image built from this CL
Change-Id: I0f1aec42687dd6eeaa0081c3d98e931a90477c75
Reviewed-on: https://chromium-review.googlesource.com/273625
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Trybot-Ready: Shuqian Zhao <shuqianz@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Shuqian Zhao <shuqianz@chromium.org>
diff --git a/test_suites/control.graphics_browser b/test_suites/control.graphics_browser
index 315f6bb..87c6dca 100644
--- a/test_suites/control.graphics_browser
+++ b/test_suites/control.graphics_browser
@@ -30,11 +30,10 @@
from autotest_lib.server.cros import provision
from autotest_lib.server.cros.dynamic_suite import dynamic_suite
-dynamic_suite.reimage_and_run(
- build=build, board=board, name='graphics_browser', job=job, pool=pool,
- check_hosts=check_hosts, add_experimental=True, num=num,
- file_bugs=file_bugs, priority=priority, timeout_mins=timeout_mins,
- max_runtime_mins=240, devserver_url=devserver_url,
- version_prefix=provision.CROS_VERSION_PREFIX,
- wait_for_results=wait_for_results, job_retry=job_retry,
- max_retries=max_retries)
+args_dict['max_runtime_mins'] = 240
+args_dict['add_experimental'] = True
+args_dict['name'] = 'graphics_browser'
+args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
+args_dict['job'] = job
+
+dynamic_suite.reimage_and_run(**args_dict)