*: fix tests, go vet

This commit is contained in:
Gyu-Ho Lee 2017-01-19 15:38:30 -08:00
parent 75647a31b7
commit 75ed35882f
No known key found for this signature in database
GPG Key ID: 1DDD39C7EB70C24C
2 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ func do(configPath string) error {
}
}
plog.Println("saving data to %q", cfg.AllAggregatedPath)
plog.Printf("saving data to %q", cfg.AllAggregatedPath)
var (
readsCompletedDeltaSumColumns []dataframe.Column
sectorsReadDeltaSumColumns []dataframe.Column

View File

@ -6,12 +6,12 @@ if ! [[ "$0" =~ "scripts/tests.sh" ]]; then
exit 255
fi
IGNORE_PKGS="(vendor)"
IGNORE_PKGS="(agent|vendor|remotestorage)"
TESTS=`find . -name \*_test.go | while read a; do dirname $a; done | sort | uniq | egrep -v "$IGNORE_PKGS"`
echo "Running tests...";
go test -v -cover -cpu 1,2,4 $TESTS;
go test -v -cover -cpu 1,2,4 -race $TESTS;
go test -v $TESTS;
go test -v -race $TESTS;
echo "Checking gofmt..."
fmtRes=$(gofmt -l -s $TESTS 2>&1 >/dev/null)