Преглед изворни кода

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 пре 11 година
родитељ
комит
41b1f93bf7
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      hack/make/test-integration

+ 5 - 1
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