File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,8 @@ main = do
11
11
12
12
projectGhcVersionTests :: TestTree
13
13
projectGhcVersionTests = testGroup " --project-ghc-version"
14
- [ testCase " stack with ghc 8.10.7" $
15
- testDir " test/wrapper/testdata/stack-8.10.7" " 8.10.7"
16
- , testCase " stack with ghc 8.8.4" $
17
- testDir " test/wrapper/testdata/stack-8.8.4" " 8.8.4"
14
+ [ stackTest " 8.10.7"
15
+ , stackTest " 8.8.4"
18
16
, testCase " cabal with global ghc" $ do
19
17
ghcVer <- trimEnd <$> readProcess " ghc" [" --numeric-version" ] " "
20
18
testDir " test/wrapper/testdata/cabal-cur-ver" ghcVer
@@ -24,6 +22,9 @@ projectGhcVersionTests = testGroup "--project-ghc-version"
24
22
testProjectType " test/wrapper/testdata/stack-with-dist-newstyle"
25
23
(" cradleOptsProg = CradleAction: Cabal" `isInfixOf` )
26
24
]
25
+ where
26
+ stackTest ghcVer= testCase (" stack with ghc " ++ ghcVer) $
27
+ testDir (" test/wrapper/testdata/stack-" ++ ghcVer) ghcVer
27
28
28
29
testDir :: FilePath -> String -> Assertion
29
30
testDir dir expectedVer =
You can’t perform that action at this time.
0 commit comments