Pass arguments after the package directly to go test hack/test-go.sh pkg/util -v -test.run=TestNewStringSet And also allow global flags hack/test-go.sh "" -v