Skip to content

cabal-testsuite/PackageTests/Get/OnlyDescription/cabal.test.hs isn't idempotent #9003

Open
@nlander

Description

@nlander

Describe the bug
The test cabal-testsuite/PackageTests/Get/OnlyDescription/cabal.test.hs succeeds on first run and then fails on all subsequent runs

To Reproduce
In the cabal directory

cd cabal-testsuite/PackageTests/Get/OnlyDescription/
cab=$(cabal list-bin cabal-install:cabal)
cabtest=$($cab list-bin cabal-testsuite:cabal-tests)
$cabtest --quiet --with-cabal $cab  # this one should pass if you haven't already run this test
$cabtest --quiet --with-cabal $cab # this one should fail

Expected behavior
I would expect that running this test more than once produces the same result. If it passed once, it should pass again. If it failed once, it should fail again (for the same reason).

System information

  • Operating system Pop!_OS 22.04 LTS
  • cabal-install version 3.10.1.0 compiled using version 3.10.1.0 of the Cabal library
  • ghc version 9.6.1

Additional context
This issue is being filed as a result of discussion in the hackage irc channel.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions