[Git][haskell-team/DHG_packages][master] stack: Disable tests that require network access
Ilias Tsitsimpis (@iliastsi)
gitlab at salsa.debian.org
Sat Jan 21 16:36:20 GMT 2023
Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
ad0e1bef by Ilias Tsitsimpis at 2023-01-21T18:31:38+02:00
stack: Disable tests that require network access
- - - - -
3 changed files:
- p/haskell-stack/debian/changelog
- + p/haskell-stack/debian/patches/disable-network-tests
- p/haskell-stack/debian/patches/series
Changes:
=====================================
p/haskell-stack/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-stack (2.7.5-2) unstable; urgency=medium
+
+ * Disable tests that require network access (Closes: #1026661)
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Sat, 21 Jan 2023 18:31:34 +0200
+
haskell-stack (2.7.5-1) unstable; urgency=medium
* New upstream release (Closes: #1011855)
=====================================
p/haskell-stack/debian/patches/disable-network-tests
=====================================
@@ -0,0 +1,50 @@
+Index: b/src/test/Stack/ConfigSpec.hs
+===================================================================
+--- a/src/test/Stack/ConfigSpec.hs
++++ b/src/test/Stack/ConfigSpec.hs
+@@ -183,26 +183,26 @@ spec = beforeAll setup $ do
+ boptsReconfigure `shouldBe` True
+ boptsCabalVerbose `shouldBe` True
+
+- it "finds the config file in a parent directory" $ inTempDir $ do
+- writeFile "package.yaml" "name: foo"
+- writeFile (toFilePath stackDotYaml) sampleConfig
+- parentDir <- getCurrentDirectory >>= parseAbsDir
+- let childDir = "child"
+- createDirectory childDir
+- setCurrentDirectory childDir
+- loadConfig' $ \config -> liftIO $ do
+- bc <- runRIO config $ withBuildConfig ask
+- view projectRootL bc `shouldBe` parentDir
++ -- it "finds the config file in a parent directory" $ inTempDir $ do
++ -- writeFile "package.yaml" "name: foo"
++ -- writeFile (toFilePath stackDotYaml) sampleConfig
++ -- parentDir <- getCurrentDirectory >>= parseAbsDir
++ -- let childDir = "child"
++ -- createDirectory childDir
++ -- setCurrentDirectory childDir
++ -- loadConfig' $ \config -> liftIO $ do
++ -- bc <- runRIO config $ withBuildConfig ask
++ -- view projectRootL bc `shouldBe` parentDir
+
+- it "respects the STACK_YAML env variable" $ inTempDir $ do
+- withSystemTempDir "config-is-here" $ \dir -> do
+- let stackYamlFp = toFilePath (dir </> stackDotYaml)
+- writeFile stackYamlFp sampleConfig
+- writeFile (toFilePath dir ++ "/package.yaml") "name: foo"
+- withEnvVar "STACK_YAML" stackYamlFp $ loadConfig' $ \config -> liftIO $ do
+- BuildConfig{..} <- runRIO config $ withBuildConfig ask
+- bcStackYaml `shouldBe` dir </> stackDotYaml
+- parent bcStackYaml `shouldBe` dir
++ -- it "respects the STACK_YAML env variable" $ inTempDir $ do
++ -- withSystemTempDir "config-is-here" $ \dir -> do
++ -- let stackYamlFp = toFilePath (dir </> stackDotYaml)
++ -- writeFile stackYamlFp sampleConfig
++ -- writeFile (toFilePath dir ++ "/package.yaml") "name: foo"
++ -- withEnvVar "STACK_YAML" stackYamlFp $ loadConfig' $ \config -> liftIO $ do
++ -- BuildConfig{..} <- runRIO config $ withBuildConfig ask
++ -- bcStackYaml `shouldBe` dir </> stackDotYaml
++ -- parent bcStackYaml `shouldBe` dir
+
+ it "STACK_YAML can be relative" $ inTempDir $ do
+ parentDir <- getCurrentDirectory >>= parseAbsDir
=====================================
p/haskell-stack/debian/patches/series
=====================================
@@ -1,2 +1,3 @@
remove-mintty.patch
lts-19
+disable-network-tests
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/ad0e1bef6e684473fd8576bc5b953661aa959acb
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/ad0e1bef6e684473fd8576bc5b953661aa959acb
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20230121/68c5e89a/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list