]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: recursively remove .gcno and .gcda
authorLoic Dachary <loic@dachary.org>
Mon, 16 Dec 2013 13:36:26 +0000 (14:36 +0100)
committerLoic Dachary <loic@dachary.org>
Tue, 17 Dec 2013 12:47:48 +0000 (13:47 +0100)
Instead of removing them only in the current directory. Leftovers
prevent running make check-coverage properly because lcov fails
when stumbling on old .gcno files with

lcov -d . -c -i -o check-coverage_base_full.lcov
Processing os/BtrfsFileStoreBackend.gcno
geninfo: ERROR: ceph/src/os/BtrfsFileStoreBackend.gcno: reached
         unexpected end of file

Signed-off-by: Loic Dachary <loic@dachary.org>
src/Makefile.am

index 7ee5e6a11207b777e67b5c944ef477c5eb571502..c337f7bf59df913d2ce70542c9767e561b619433 100644 (file)
@@ -310,7 +310,8 @@ ceph: ceph.in ./ceph_ver.h Makefile
 # cleaning
 
 clean-local:
-       rm -f *.so *.gcno *.gcda
+       rm -f *.so 
+       find . -name '*.gcno' -o -name '*.gcda' -o -name '*.lcov' | xargs rm -f
        rm -f ceph java/java/com/ceph/crush/Bucket.class