From 44335ceb3aa56bfd511ae76fe597d53fb6f6c414 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Sat, 18 Apr 2015 20:19:47 -0700 Subject: [PATCH] Exclude CLI from unit tests coverage Signed-off-by: Andrea Luzzardi --- script/coverage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/coverage b/script/coverage index 429a111947..7845aa05c1 100755 --- a/script/coverage +++ b/script/coverage @@ -4,8 +4,8 @@ MODE="mode: count" ROOT=${TRAVIS_BUILD_DIR:-.}/../../.. # Grab the list of packages. -# Exclude the API from coverage as it will be covered by integration tests. -PACKAGES=`go list ./... | grep -v github.com/docker/swarm/api` +# Exclude the API and CLI from coverage as it will be covered by integration tests. +PACKAGES=`go list ./... | grep -v github.com/docker/swarm/api | grep -v github.com/docker/swarm/cli` # Create the empty coverage file. echo $MODE > goverage.report