Merge pull request #1110 from timstclair/httptest

Stop leaking testing dependencies (and flags) in non-testing builds
This commit is contained in:
Vish Kannan 2016-02-12 14:43:45 -08:00
commit e9739af184
4 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,7 @@ all: format build test
test:
@echo ">> running tests"
@$(GO) test -short -race $(pkgs)
@$(GO) test -tags test -short -race $(pkgs)
test-integration: build test
@./build/integration.sh

View File

@ -20,5 +20,5 @@ set -x
./build/check_gofmt.sh .
./build/check_boilerplate.sh
go vet github.com/google/cadvisor/...
godep go test -v -race -test.short github.com/google/cadvisor/...
godep go test -tags test -v -race -test.short github.com/google/cadvisor/...
godep go build github.com/google/cadvisor

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build test
package container
import (

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build test
package manager
import (