def METHOD_NAME(renku_cli, project):
    """Test duplicate indirect outputs are only included once."""
    with chdir(project.path):
        Path("foo").mkdir()
        Path(".renku/tmp").mkdir()
        Path("foo/bar").touch()
        Path("script.sh").write_text(
            """
            echo 'output-1: foo/bar' >> .renku/tmp/outputs.yml
            echo 'output-1: foo/bar' >> .renku/tmp/outputs.yml
            echo 'output-1: foo/./bar' >> .renku/tmp/outputs.yml
            echo 'output-1: foo/../foo/bar' >> .renku/tmp/outputs.yml
            echo 'output-2: baz' >> .renku/tmp/outputs.yml
            echo 'output-2: baz' >> .renku/tmp/outputs.yml
            touch baz
            """
        )
        project.repository.add(all=True)
        project.repository.commit("test setup")
    exit_code, activity = renku_cli("run", "sh", "-c", "sh script.sh")
    assert 0 == exit_code
    assert {"baz", "foo/bar"} == {o.default_value for o in activity.association.plan.outputs}