File: disable-network-tests

package info (click to toggle)
haskell-stack 2.7.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,060 kB
  • sloc: haskell: 26,459; makefile: 6; ansic: 5
file content (50 lines) | stat: -rw-r--r-- 2,506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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