Skip to content

Commit 7b18677

Browse files
committed
Filter suitesToRun according to testsToRun
1 parent 7dca839 commit 7b18677

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Stack/Build/Execute.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,12 @@ singleTest runInBase topts testsToRun ac ee task installedMap = do
11791179
hpcDir <- hpcDirFromDir pkgDir
11801180
when needHpc (createTree hpcDir)
11811181

1182-
let suitesToRun = Map.toList $ packageTests package
1182+
let suitesToRun
1183+
= [ testSuitePair
1184+
| testSuitePair <- Map.toList $ packageTests package
1185+
, let testName = fst testSuitePair
1186+
, testName `elem` testsToRun
1187+
]
11831188

11841189
errs <- liftM Map.unions $ forM suitesToRun $ \(testName, suiteInterface) -> do
11851190
let stestName = T.unpack testName

0 commit comments

Comments
 (0)