def _make_result_path(result):
    """Create a path for the result, using the fspath and test id"""
    result_path = ""
    if result.get("metadata") and result["metadata"].get("fspath"):
        fspath = result["metadata"]["fspath"]
        if fspath.startswith("../"):
            fspath = fspath[3:]
        if fspath.startswith("./"):
            fspath = fspath[2:]
        result_path = "{}::".format(fspath)
    result_path += result["test_id"]
    return result_path