* Handle the case where a machine produces no coverage data.
svn path=/nixos/trunk/; revision=25477
This commit is contained in:
parent
b5b7375eea
commit
20b8258e68
@ -77,11 +77,11 @@ rec {
|
|||||||
# runTests.
|
# runTests.
|
||||||
makeReport = x: runCommand "report" { buildInputs = [rsync]; }
|
makeReport = x: runCommand "report" { buildInputs = [rsync]; }
|
||||||
''
|
''
|
||||||
|
mkdir -p $TMPDIR/gcov/
|
||||||
|
|
||||||
for d in ${x}/coverage-data/*; do
|
for d in ${x}/coverage-data/*; do
|
||||||
|
|
||||||
echo "doing $d"
|
echo "doing $d"
|
||||||
|
[ -n "$(ls -A "$d")" ] || continue
|
||||||
ensureDir $TMPDIR/gcov/
|
|
||||||
|
|
||||||
for i in $(cd $d/nix/store && ls); do
|
for i in $(cd $d/nix/store && ls); do
|
||||||
if ! test -e $TMPDIR/gcov/nix/store/$i; then
|
if ! test -e $TMPDIR/gcov/nix/store/$i; then
|
||||||
|
Loading…
Reference in New Issue
Block a user