NOTE: This depends on the (not yet committed) patches mailed out to add default_profile_only support to the job classes.
Add a new parameter to the control file generation RPCs to generate
control files that make use of the new set_default_profile_only
API.
Risk: Low
Visibility: Adds a new optional parameter to generate_control_file
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3829 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index 2d7c9e1..08b4e40 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -349,7 +349,8 @@
# jobs
def generate_control_file(tests=(), kernel=None, label=None, profilers=(),
- client_control_file='', use_container=False):
+ client_control_file='', use_container=False,
+ profile_only=None):
"""
Generates a client-side control file to load a kernel and run tests.
@@ -367,6 +368,9 @@
control file.
@param use_container unused argument today. TODO: Enable containers
on the host during a client side test.
+ @param profile_only A boolean that indicates what default profile_only
+ mode to use in the control file. Passing None will generate a
+ control file that does not explcitly set the default mode at all.
@returns a dict with the following keys:
control_file: str, The control file text.
@@ -385,7 +389,7 @@
cf_info['control_file'] = control_file.generate_control(
tests=test_objects, kernels=kernel, platform=label,
profilers=profiler_objects, is_server=cf_info['is_server'],
- client_control_file=client_control_file)
+ client_control_file=client_control_file, profile_only=profile_only)
return cf_info