From 9a4242a8e63c705bf173d77ee9365b4047d6e56f Mon Sep 17 00:00:00 2001 From: Phil de Joux Date: Sat, 16 Nov 2024 06:48:34 -0500 Subject: [PATCH] Use --dry-run for config listing tests --- .../PackageTests/ConditionalAndImport/cabal.test.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs b/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs index 9eb5f6b22e3..22e16ba23a3 100644 --- a/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs +++ b/cabal-testsuite/PackageTests/ConditionalAndImport/cabal.test.hs @@ -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: @@ -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: