From 7e2caa5f165e3ec2cab2743f480c501d2024ebc2 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Fri, 11 May 2018 09:20:30 -0700 Subject: [PATCH] [toranj] enable code coverage mode on travis only (#2701) --- tests/toranj/start.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/toranj/start.sh b/tests/toranj/start.sh index 377b2c8d5..32b329481 100755 --- a/tests/toranj/start.sh +++ b/tests/toranj/start.sh @@ -80,10 +80,16 @@ cd ../.. # Build OpenThread posix mode with required configuration +if [ "$BUILD_TARGET" = "toranj-test-framework" ]; then + coverage=yes +else + coverage=no +fi + ./bootstrap || die ./configure \ CPPFLAGS='-DOPENTHREAD_PROJECT_CORE_CONFIG_FILE=\"../tests/toranj/openthread-core-toranj-config.h\"' \ - --enable-coverage \ + --enable-coverage=${coverage} \ --enable-ncp-app=all \ --with-ncp-bus=uart \ --with-examples=posix \