* Handle the case where a machine produces no coverage data.

svn path=/nixos/trunk/; revision=25477
This commit is contained in:
Eelco Dolstra 2011-01-09 21:37:01 +00:00
parent b5b7375eea
commit 20b8258e68

View File

@ -77,11 +77,11 @@ rec {
# runTests.
makeReport = x: runCommand "report" { buildInputs = [rsync]; }
''
mkdir -p $TMPDIR/gcov/
for d in ${x}/coverage-data/*; do
echo "doing $d"
ensureDir $TMPDIR/gcov/
[ -n "$(ls -A "$d")" ] || continue
for i in $(cd $d/nix/store && ls); do
if ! test -e $TMPDIR/gcov/nix/store/$i; then