Browse code

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 <admwiggin@gmail.com> (github: tianon)

Tianon Gravi authored on 2014/02/22 03:26:04
Showing 1 changed files
... ...
@@ -9,4 +9,8 @@ bundle_test_integration() {
9 9
 		"-coverpkg $(find_dirs '*.go' | sed 's,^\.,github.com/dotcloud/docker,g' | paste -d, -s)"
10 10
 }
11 11
 
12
-bundle_test_integration 2>&1 | tee $DEST/test.log
12
+# this "grep" hides some really irritating warnings that "go test -coverpkg"
13
+# spews when it is given packages that aren't used
14
+bundle_test_integration 2>&1 \
15
+	| grep -v '^warning: no packages being tested depend on ' \
16
+	| tee $DEST/test.log