mirror of
https://github.com/clearlinux/rkt.git
synced 2026-09-01 11:26:05 +00:00
Merge pull request #809 from endocode/alban/functests_go_from_git
functional tests: use the correct version of go
This commit is contained in:
+6
-1
@@ -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 $*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user