test: Add doc note about skipping docker tests

This is useful if you don't have docker running, since otherwise it
causes all the tests to fail.
This commit is contained in:
James Shubin
2018-12-03 23:55:20 -05:00
parent 7c817802a8
commit 4c93bc3599

View File

@@ -25,6 +25,8 @@ function run-test()
$XSUDO $@ || failures=$( [ -n "$failures" ] && echo "$failures\\n$@" || echo "$@" ) $XSUDO $@ || failures=$( [ -n "$failures" ] && echo "$failures\\n$@" || echo "$@" )
} }
# NOTE: you can run `go test` with the -tags flag to skip certain tests, eg:
# go test -tags nodocker github.com/purpleidea/mgmt/engine/resources -v
base=$(go list .) base=$(go list .)
if [[ "$@" = *"--integration"* ]]; then if [[ "$@" = *"--integration"* ]]; then
if [[ "$@" = *"--race"* ]]; then if [[ "$@" = *"--race"* ]]; then