def get_env_values(request, run_id):
    """Get the list of env values to this run.

    :param int run_id: run ID.
    :return: a list of mappings representing found :class:`TCMSEnvValue`.
    :rtype: List[dict]

    Example::

        TestRun.get_env_values(8)
    """
    from tcms.management.models import TCMSEnvValue

    # FIXME: return [] if run_id is None or ""

    query = {"testrun__pk": run_id}
    return TCMSEnvValue.to_xmlrpc(query)