github.com/looshlee/beatles@v0.0.0-20220727174639-742810ab631c/contrib/scripts/check-missing-tags-in-tests.sh (about) 1 #!/usr/bin/env bash 2 3 set -e 4 5 if grep -L --include \*_test.go '// +build' . -r | grep -v vendor | grep -v test/ ; then 6 echo "Test file(s) does not contain a tag privileged_tests or !privileged_tests tags" 7 exit 1 8 fi