def generate_control(tests, kernels=None, platform=None, is_server=False, profilers=(), client_control_file='', profile_only=None, upload_kernel_config=False):
 _sanity_check_generate_control(is_server=is_server, kernels=kernels, client_control_file=client_control_file, upload_kernel_config=upload_kernel_config)
 control_file_text = ''
 if kernels:
  control_file_text = get_kernel_stanza(kernels, platform, is_server=is_server, upload_kernel_config=upload_kernel_config)
 else:
  control_file_text = EMPTY_TEMPLATE
 (prepend, append) = _get_profiler_commands(profilers, is_server, profile_only)
 control_file_text += get_tests_stanza(tests, is_server, prepend, append, client_control_file)
 return control_file_text

def generate_control ( tests , kernels = None , platform = None , is_server = False , profilers = ( ) , client_control_file = '' , profile_only = None , upload_kernel_config = False ) : _sanity_check_generate_control ( is_server = is_server , kernels = kernels , client_control_file = client_control_file , upload_kernel_config = upload_kernel_config ) control_file_text = '' if kernels : control_file_text = get_kernel_stanza ( kernels , platform , is_server = is_server , upload_kernel_config = upload_kernel_config ) else : control_file_text = EMPTY_TEMPLATE ( prepend , append ) = _get_profiler_commands ( profilers , is_server , profile_only ) control_file_text += get_tests_stanza ( tests , is_server , prepend , append , client_control_file ) return control_file_text
generate a control file for a sequence of tests .