Skip to content

Commit

Permalink
Use --dry-run for config listing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed Nov 25, 2024
1 parent 8a549b7 commit 9a4242a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ main = cabalTest . withRepo "repo" . recordMode RecordMarked $ do

log "checking \"using config from message\" without URI imports"
withDirectory "yops" $ do
yopping <- fails $ cabal' "v2-build" [ "--project-file=../yops-0.project" ]
yopping <- fails $ cabal' "v2-build" [ "--dry-run", "--project-file=../yops-0.project" ]

-- Use assertRegex when the output is tainted by the temp directory, like
-- this:
Expand Down Expand Up @@ -298,7 +298,7 @@ main = cabalTest . withRepo "repo" . recordMode RecordMarked $ do

log "checking \"using config from message\" with URI imports"
withDirectory "woops" $ do
woopping <- fails $ cabal' "v2-build" [ "--project-file=../woops-0.project" ]
woopping <- fails $ cabal' "v2-build" [ "--dry-run", "--project-file=../woops-0.project" ]

-- Use assertRegex when the output is tainted by the temp directory, like
-- this:
Expand Down

0 comments on commit 9a4242a

Please sign in to comment.