Skip to content

Commit

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

errs <- liftM Map.unions $ forM (Map.toList (packageTests package)) $ \(testName, suiteInterface) -> do
let suitesToRun = Map.toList $ packageTests package

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

0 comments on commit 7dca839

Please sign in to comment.