mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
chore(test.sh): move gofmt check to the end of testing
So it won't be blocked on gofmt check.
This commit is contained in:
parent
f0dee63716
commit
915cc53d83
14
test.sh
14
test.sh
@ -2,13 +2,6 @@
|
||||
|
||||
. ./build
|
||||
|
||||
fmtRes=`gofmt -l $GOFMTPATH`
|
||||
if [ "$fmtRes" != "" ]; then
|
||||
echo "Failed to pass golang format checking."
|
||||
echo "Please gofmt modified go files, or run './build --fmt'."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
go test -i ./http
|
||||
go test -v ./http
|
||||
|
||||
@ -32,3 +25,10 @@ go test -v ./mod/lock/v2/tests
|
||||
|
||||
go test -i ./tests/functional
|
||||
ETCD_BIN_PATH=$(pwd)/bin/etcd go test -v ./tests/functional
|
||||
|
||||
fmtRes=`gofmt -l $GOFMTPATH`
|
||||
if [ "$fmtRes" != "" ]; then
|
||||
echo "Failed to pass golang format checking."
|
||||
echo "Please gofmt modified go files, or run './build --fmt'."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user