From f622e51d99b068cae0d4611115d6dae719ee3a2e Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Fri, 31 Oct 2014 12:21:50 -0700 Subject: [PATCH] updates for fmt testing --- .travis.yml | 1 - Makefile | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c60aca4..4f2ee4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,2 +1 @@ language: go -script: sudo -E go test -v github.com/vishvananda/netlink && sudo -E go test -v github.com/vishvananda/netlink/nl diff --git a/Makefile b/Makefile index 00ace3e..0a7e09d 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ all: test .PHONY: $(call testdirs,$(DIRS)) $(call testdirs,$(DIRS)): - sudo -E go test -v github.com/vishvananda/netlink/$@ + ! gofmt -l $@*.go | grep '' + go test -v github.com/vishvananda/netlink/$@ test: $(call testdirs,$(DIRS))