Merge pull request #809 from endocode/alban/functests_go_from_git

functional tests: use the correct version of go
This commit is contained in:
Alban
2015-04-23 13:20:40 +02:00
+6 -1
View File
@@ -13,5 +13,10 @@
# To run only one test:
# $ cd tests && ./test -run=TestEnv
sudo GOPATH="${PWD}/../gopath" RKT_ENABLE_DESTRUCTIVE_TESTS="$RKT_ENABLE_DESTRUCTIVE_TESTS" go test -v $*
# Sudo does not preserve $PATH. Use go from the user's $PATH instead of
# root's $PATH. It is needed when a home-built go does not have the same
# version as the system-wide installed go.
GO=`which go`
sudo GOPATH="${PWD}/../gopath" RKT_ENABLE_DESTRUCTIVE_TESTS="$RKT_ENABLE_DESTRUCTIVE_TESTS" GOROOT="$GOROOT" $GO test -v $*