From 5c6d68caba800f901e0d9d4e0a2cc39a05c625eb Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Thu, 27 Jun 2019 23:15:08 -0700 Subject: [PATCH] automatically tag tests in test/integration/* as integration --- hack/update-bazel.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hack/update-bazel.sh b/hack/update-bazel.sh index 5dcbc8c51cc..2992afb2ac9 100755 --- a/hack/update-bazel.sh +++ b/hack/update-bazel.sh @@ -80,6 +80,13 @@ if [[ $ret != 0 && $ret != 3 ]]; then exit 1 fi +# mark all ./test/integration/* targets as integration +# see comment above re: buildozer exit codes +buildozer -quiet 'add tags integration' '//test/integration/...:%go_test' && ret=$? || ret=$? +if [[ $ret != 0 && $ret != 3 ]]; then + exit 1 +fi + # we need to set this because gazelle doesn't support pkg-config, which would set this link option # see comment above re: buildozer exit codes buildozer -quiet 'set clinkopts select({"@io_bazel_rules_go//go/platform:linux":["-lseccomp",],"//conditions:default":[],})' //vendor/github.com/seccomp/libseccomp-golang:go_default_library && ret=$? || ret=$?