travis: enable code coverage reporting. (#516)

This commit is contained in:
Jonathan Hui
2016-09-08 14:14:25 -07:00
committed by GitHub
parent 7c2b818d2e
commit 563685e187
13 changed files with 50 additions and 5 deletions
+4 -1
View File
@@ -98,7 +98,10 @@ class Node:
def __del__(self):
if self.pexpect.isalive():
if self.node_type == 'ncp-sim':
if self.node_type == 'sim':
self.send_command('exit')
self.pexpect.expect('Done')
elif self.node_type == 'ncp-sim':
self.pexpect.sendcontrol('c');
self.pexpect.terminate()
self.pexpect.close(force=True)
+4
View File
@@ -142,6 +142,10 @@ test_diag_LDADD = $(top_builddir)/src/diag/libopenthread-diag.a
test_diag_SOURCES = test_diag.cpp
endif
if OPENTHREAD_BUILD_COVERAGE
CLEANFILES = $(wildcard *.gcda *.gcno)
endif # OPENTHREAD_BUILD_COVERAGE
endif # OPENTHREAD_BUILD_TESTS
include $(abs_top_nlbuild_autotools_dir)/automake/post.am