From a30a290c2bfae1486bb82bd73fc30e898d76106a Mon Sep 17 00:00:00 2001 From: Gershom Date: Fri, 26 Jul 2019 16:53:15 -0400 Subject: [PATCH] test for parsing option as list --- cabal-testsuite/PackageTests/UserConfig/cabal.out | 6 ++++++ cabal-testsuite/PackageTests/UserConfig/cabal.test.hs | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/cabal-testsuite/PackageTests/UserConfig/cabal.out b/cabal-testsuite/PackageTests/UserConfig/cabal.out index 7887050e8..8dc64f170 100644 --- a/cabal-testsuite/PackageTests/UserConfig/cabal.out +++ b/cabal-testsuite/PackageTests/UserConfig/cabal.out @@ -6,3 +6,9 @@ cabal: /cabal.dist/cabal-config already exists. Writing default configuration to /cabal.dist/cabal-config # cabal user-config Writing default configuration to /cabal.dist/cabal-config2 +# cabal user-config +Renaming /cabal.dist/cabal-config to /cabal.dist/cabal-config.backup. +Writing merged config to /cabal.dist/cabal-config. +# cabal user-config +Renaming /cabal.dist/cabal-config to /cabal.dist/cabal-config.backup. +Writing merged config to /cabal.dist/cabal-config. diff --git a/cabal-testsuite/PackageTests/UserConfig/cabal.test.hs b/cabal-testsuite/PackageTests/UserConfig/cabal.test.hs index 32ad84982..85d67212d 100644 --- a/cabal-testsuite/PackageTests/UserConfig/cabal.test.hs +++ b/cabal-testsuite/PackageTests/UserConfig/cabal.test.hs @@ -11,3 +11,7 @@ main = cabalTest $ do withEnv [("CABAL_CONFIG", Just conf2)] $ do cabal "user-config" ["init"] shouldExist conf2 + cabalG ["--config-file", conf] "user-config" ["update", "-f", "-a", "extra-prog-path: foo", "-a", "extra-prog-path: bar"] + assertFileDoesContain conf "foo,bar" + cabalG ["--config-file", conf] "user-config" ["update", "-f", "-a", "extra-prog-path: foo, bar"] + assertFileDoesContain conf "foo,bar" -- 2.11.4.GIT