From 4c93bc3599ab56a451c7f6a9ec61169b5fa516c4 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Mon, 3 Dec 2018 23:55:20 -0500 Subject: [PATCH] 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. --- test/test-gotest.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-gotest.sh b/test/test-gotest.sh index c03f1267..d8dab4ce 100755 --- a/test/test-gotest.sh +++ b/test/test-gotest.sh @@ -25,6 +25,8 @@ function run-test() $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 .) if [[ "$@" = *"--integration"* ]]; then if [[ "$@" = *"--race"* ]]; then