We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2d3778 + 7b18677 commit 189d677Copy full SHA for 189d677
src/Stack/Build/Execute.hs
@@ -1179,7 +1179,14 @@ singleTest runInBase topts testsToRun ac ee task installedMap = do
1179
hpcDir <- hpcDirFromDir pkgDir
1180
when needHpc (createTree hpcDir)
1181
1182
- errs <- liftM Map.unions $ forM (Map.toList (packageTests package)) $ \(testName, suiteInterface) -> do
+ let suitesToRun
1183
+ = [ testSuitePair
1184
+ | testSuitePair <- Map.toList $ packageTests package
1185
+ , let testName = fst testSuitePair
1186
+ , testName `elem` testsToRun
1187
+ ]
1188
+
1189
+ errs <- liftM Map.unions $ forM suitesToRun $ \(testName, suiteInterface) -> do
1190
let stestName = T.unpack testName
1191
(testName', isTestTypeLib) <-
1192
case suiteInterface of
0 commit comments