'Instantiate a map_action.
:param tests_map: a dictionary of hostname -> machine_info
:param jobname_pattern: a string pattern used to make the job name
containing a single "%s" that will be replaced with the kernel
version
:param job_owner: the user used to talk with the RPC server
:param upload_kernel_config: specify if the generate control file
should contain code that downloads and sends to the client the
kernel config file (in case it is an URL); this requires that
the tests_map refers only to server side tests'

def __init__(self, tests_map, jobname_pattern, job_owner='autotest', upload_kernel_config=False):

    self._tests_map = tests_map
    self._jobname_pattern = jobname_pattern
    self._afe = frontend.AFE(user=job_owner)
    self._upload_kernel_config = upload_kernel_config
