mirror of https://github.com/etcd-io/dbtester.git
*: fix tests, go vet
This commit is contained in:
parent
75647a31b7
commit
75ed35882f
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue