def show_result(pg_version, es_version, name, output):
    """ Show the result of a test """
    success, error = output

    print(
        "PostgreSQL {pg_version} with Elasticsearch {es_version}: Test {name} - {result}".format(
            pg_version=pg_version,
            es_version=es_version,
            name=name,
            result="PASS" if success else "FAIL",
        )
    )
    if not success:
        print(error)

    return success