[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.perf_v2 b/test_suites/control.perf_v2
index 33f8f14..b5707e8 100644
--- a/test_suites/control.perf_v2
+++ b/test_suites/control.perf_v2
@@ -42,11 +42,11 @@
'beeps@chromium.org']
}
-dynamic_suite.reimage_and_run(
- build=build, board=board, name='perf_v2', job=job, pool=pool,
- check_hosts=check_hosts, add_experimental=True, num=num,
- file_bugs=False, priority=priority, timeout_mins=timeout_mins,
- bug_template=_BUG_TEMPLATE, 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['file_bugs'] = False
+args_dict['name'] = 'perf_v2'
+args_dict['job'] = job
+args_dict['add_experimental'] = True
+args_dict['version_prefix'] = provision.CROS_VERSION_PREFIX
+args_dict['bug_template'] = _BUG_TEMPLATE
+
+dynamic_suite.reimage_and_run(**args_dict)