More consistently pass --package-db flag to tests
commit2b44677c3123f607e544460402f5e7609cbf517b
authorMatthew Pickering <matthewtpickering@gmail.com>
Mon, 29 Apr 2024 15:11:14 +0000 (29 16:11 +0100)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Fri, 3 May 2024 10:09:57 +0000 (3 10:09 +0000)
treeff6ab1b6b48c12e77002798ccad3cc5047d2aa93
parentbfd9bfb51da622a847c4bb1c54ed37fd9792a112
More consistently pass --package-db flag to tests

Previously `--package-db` was only passed to test which used the `v2-`
prefix.

Now we pass `--package-db` to things which use the `v2-` prefix, not
things which use the `v1-` prefix and by default assume that unprefixed
commands are v2 commands.
cabal-testsuite/PackageTests/CustomTestCoverage/cabal.out
cabal-testsuite/PackageTests/Regression/T9640/cabal.out
cabal-testsuite/src/Test/Cabal/DecodeShowBuildInfo.hs
cabal-testsuite/src/Test/Cabal/Prelude.hs