Fix coverage reports
authorIustin Pop <iustin@google.com>
Wed, 24 Nov 2010 16:06:32 +0000 (16:06 +0000)
committerIustin Pop <iustin@google.com>
Wed, 24 Nov 2010 16:52:51 +0000 (16:52 +0000)
commit577b170b61f1ec9de1c9287cfe828f13b03683bc
tree66b3a401e1cf9e847d80967fc051fb45183b1c26
parent2596526d9b9c251c4ae3e36b0608761bddfbe58f
Fix coverage reports

Currently, the coverage reports include the unittests themselves, and
this skewes unfairly the reports, as the coverage for the tests is very
high (since they all run).

To fix this, we export the ganeti temp dir from run-in-temp-dir, and we
use that to exclude the tests directory. The patch also fixes a but
related to multiple directories to be omitted (--omit a --omit b is
wrong, it needs to be --omit a,b).

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
autotools/gen-coverage
autotools/run-in-tempdir