'Uses generate_control_file RPC to generate a control file given
a test name and kernel information.
:param test: The test name string as it\'s named in the frontend
database.
:param kernel: A str of the kernel version (i.e. x.x.xx)
:param kernel_config: A str filename to the kernel config on the
client
:return: a dict representing a control file as described by
frontend.afe.rpc_interface.generate_control_file'

def _generate_control(self, test, kernel, kernel_config):

    kernel_info = dict(version=kernel, config_file=os.path.expanduser(kernel_config))
    return self._afe.generate_control_file(tests=[test], kernel=[kernel_info], upload_kernel_config=self._upload_kernel_config)
