mirror of https://github.com/knative/client.git
Only test in watch mode if passed test flag (#343)
This commit is contained in:
parent
6af3edb789
commit
3d3eac1dff
|
|
@ -49,7 +49,10 @@ run() {
|
||||||
if $(has_flag --watch -w); then
|
if $(has_flag --watch -w); then
|
||||||
# Build and test first
|
# Build and test first
|
||||||
go_build
|
go_build
|
||||||
go_test
|
|
||||||
|
if $(has_flag --test -t); then
|
||||||
|
go_test
|
||||||
|
fi
|
||||||
|
|
||||||
# Go in endless loop, to be stopped with CTRL-C
|
# Go in endless loop, to be stopped with CTRL-C
|
||||||
watch
|
watch
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue