Only test in watch mode if passed test flag (#343)

This commit is contained in:
Aaron Lerner 2019-08-07 01:26:55 -07:00 committed by Knative Prow Robot
parent 6af3edb789
commit 3d3eac1dff
1 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,10 @@ run() {
if $(has_flag --watch -w); then
# Build and test first
go_build
go_test
if $(has_flag --test -t); then
go_test
fi
# Go in endless loop, to be stopped with CTRL-C
watch