File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,12 @@ unit-test-centos: stop clean
87
87
system-test : system-test-singlehost system-test-multihost
88
88
89
89
# the `make stop` here and below are necessary because build leaves around a VM (intentionally)
90
- system-test-singlehost : stop clean
90
+ system-test-singlehost : stop clean checks
91
91
make build stop
92
92
godep go test -v --timeout 30m -run " sanity" \
93
93
github.com/contiv/netplugin/systemtests/singlehost
94
94
95
- system-test-multihost : stop clean
95
+ system-test-multihost : stop clean checks build
96
96
make build stop
97
97
godep go test -v --timeout 80m -run " sanity" \
98
98
github.com/contiv/netplugin/systemtests/twohosts
Original file line number Diff line number Diff line change @@ -13,12 +13,18 @@ BUILD_PKGS=$1
13
13
14
14
echo " +++ Checking Go version..."
15
15
ver=$( go version | awk ' {print $3}' )
16
- minVer=" go1.4"
16
+ minVer=" go1.4.2"
17
+ maxVer=" go1.4.2"
17
18
if [[ ${ver} < ${minVer} ]]; then
18
19
echo " !!! Go version check failed. Expected >=${minVer} but found ${ver} "
19
20
exit 1
20
21
fi
21
22
23
+ if [[ ${ver} > ${maxVer} ]]; then
24
+ echo " !!! Go version check failed. Expected =<${maxVer} but found ${ver} "
25
+ exit 1
26
+ fi
27
+
22
28
echo " +++ Checking gofmt..."
23
29
fmtRes=$( gofmt -l $BUILD_PKGS )
24
30
if [ -n " ${fmtRes} " ]; then
You can’t perform that action at this time.
0 commit comments