Skip to content

Commit

Permalink
Filter suitesToRun according to testsToRun
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed Dec 21, 2015
1 parent 7dca839 commit 7b18677
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,12 @@ singleTest runInBase topts testsToRun ac ee task installedMap = do
hpcDir <- hpcDirFromDir pkgDir
when needHpc (createTree hpcDir)

let suitesToRun = Map.toList $ packageTests package
let suitesToRun
= [ testSuitePair
| testSuitePair <- Map.toList $ packageTests package
, let testName = fst testSuitePair
, testName `elem` testsToRun
]

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

0 comments on commit 7b18677

Please sign in to comment.