Skip to content

Commit

Permalink
Keep original tix file for debugging #2424
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Aug 10, 2016
1 parent c850cea commit b52062d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Stack/Coverage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ updateTixFile pkgName tixSrc testName = do
Nothing -> $logError $ "Failed to read " <> T.pack (toFilePath tixSrc)
Just tix -> do
liftIO $ writeTix (toFilePath tixDest) (removeExeModules tix)
-- TODO: ideally we'd do a file move, but IIRC this can
-- have problems. Something about moving between drives
-- on windows?
copyFile tixSrc =<< parseAbsFile (toFilePath tixDest ++ ".premunging")
ignoringAbsence (removeFile tixSrc)

-- | Get the directory used for hpc reports for the given pkgId.
Expand Down Expand Up @@ -203,6 +207,7 @@ generateHpcReportInternal tixSrc reportDir report extraMarkupArgs extraReportArg
: (args ++ extraMarkupArgs)
)


data HpcReportOpts = HpcReportOpts
{ hroptsInputs :: [Text]
, hroptsAll :: Bool
Expand Down

0 comments on commit b52062d

Please sign in to comment.