From 41b1f93bf72e4c012a159a013697090efdcc183b Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 21 Feb 2014 11:26:04 -0700 Subject: [PATCH] Add simple "grep" to hide the harmless "warning: no packages being tested depend on ..." in "go test -coverpkg ..." output Docker-DCO-1.1-Signed-off-by: Andrew Page (github: tianon) --- hack/make/test-integration | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hack/make/test-integration b/hack/make/test-integration index 93d63ad595..fa8b8be719 100644 --- a/hack/make/test-integration +++ b/hack/make/test-integration @@ -9,4 +9,8 @@ bundle_test_integration() { "-coverpkg $(find_dirs '*.go' | sed 's,^\.,github.com/dotcloud/docker,g' | paste -d, -s)" } -bundle_test_integration 2>&1 | tee $DEST/test.log +# this "grep" hides some really irritating warnings that "go test -coverpkg" +# spews when it is given packages that aren't used +bundle_test_integration 2>&1 \ + | grep -v '^warning: no packages being tested depend on ' \ + | tee $DEST/test.log