def generate_control_file(tests=(), kernel=None, label=None, profilers=(), client_control_file='', use_container=False, profile_only=None, upload_kernel_config=False):
 if ((not tests) and (not client_control_file)):
  return dict(control_file='', is_server=False, synch_count=1, dependencies=[])
 (cf_info, test_objects, profiler_objects, label) = rpc_utils.prepare_generate_control_file(tests, kernel, label, profilers)
 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, profile_only=profile_only, upload_kernel_config=upload_kernel_config)
 return cf_info

def generate_control_file ( tests = ( ) , kernel = None , label = None , profilers = ( ) , client_control_file = '' , use_container = False , profile_only = None , upload_kernel_config = False ) : if ( ( not tests ) and ( not client_control_file ) ) : return dict ( control_file = '' , is_server = False , synch_count = 1 , dependencies = [ ] ) ( cf_info , test_objects , profiler_objects , label ) = rpc_utils . prepare_generate_control_file ( tests , kernel , label , profilers ) 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 , profile_only = profile_only , upload_kernel_config = upload_kernel_config ) return cf_info
generates a client-side control file to load a kernel and run tests .