On Wed, Aug 07, 2013 at 05:54:40PM +0200, Thomas Thrainer wrote:
> In order to generate a coverage graph, we generate also the coverage
> data as text format. This eases parsing on Buildbot.
> 
> Signed-off-by: Thomas Thrainer <[email protected]>
> ---
>  Makefile.am | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Makefile.am b/Makefile.am
> index 7d3ca00..b8d2e26 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -2146,6 +2146,7 @@ hs-coverage: $(haskell_tests) test/hs/hpc-htools 
> test/hs/hpc-mon-collector
>       @mkdir_p@ $(COVERAGE_HS_DIR)
>       hpc sum --union $(HPCEXCL) \
>         htest.tix hpc-htools.tix hpc-mon-collector.tix > coverage-hs.tix
> +     hpc report coverage-hs.tix > $(COVERAGE_HS_DIR)/report.txt
>       hpc markup --destdir=$(COVERAGE_HS_DIR) coverage-hs.tix
>       hpc report coverage-hs.tix

As this is already run, would it make sense to collapse the two runs via
tee?

hpc report coverage-hs.tix | tee $(COVERAGE_HS_DIR)/report.txt

iustin

Reply via email to